Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
fbb25ac3
Commit
fbb25ac3
authored
Aug 26, 2017
by
Damian Montero
Committed by
GitHub
Aug 26, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1145 from uberhacker/add-perl-xml-sax-parserfactory
Add perl_xml_sax_parserfactory package
parents
a7ec7efb
f9b88b4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
packages/perl_xml_sax_parserfactory.rb
packages/perl_xml_sax_parserfactory.rb
+32
-0
No files found.
packages/perl_xml_sax_parserfactory.rb
0 → 100644
View file @
fbb25ac3
require
'package'
class
Perl_xml_sax_parserfactory
<
Package
description
'XML::SAX::ParserFactory is a factory class for providing an application with a Perl SAX2 XML parser.'
homepage
'https://metacpan.org/source/GRANTM/XML-SAX-0.99/SAX/'
version
'0.99'
source_url
'https://cpan.metacpan.org/authors/id/G/GR/GRANTM/XML-SAX-0.99.tar.gz'
source_sha256
'32b04b8e36b6cc4cfc486de2d859d87af5386dd930f2383c49347050d6f5ad84'
depends_on
'perl'
def
self
.
build
end
def
self
.
install
# install files to build directory
system
'cpanm'
,
'-l'
,
"build"
,
'--self-contained'
,
'.'
# install lib
libdir
=
`perl -e 'require Config; print $Config::Config{'"'installsitelib'"'};'`
system
"mkdir -p
#{
CREW_DEST_DIR
}#{
libdir
}
"
system
"(cd build/lib/perl5; tar cf - .) | (cd
#{
CREW_DEST_DIR
}#{
libdir
}
; tar xfp -)"
# install man
mandir
=
"
#{
CREW_PREFIX
}
/share/man"
system
"mkdir -p
#{
CREW_DEST_DIR
}#{
mandir
}
"
system
"(cd build/man; tar cf - .) | (cd
#{
CREW_DEST_DIR
}#{
mandir
}
; tar xfp -)"
end
def
self
.
check
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment