Grathol n00b

Joined: 08 Nov 2003 Posts: 33
|
Posted: Thu Mar 11, 2004 3:49 pm Post subject: XML::Sax::PurePerl and Nmap::Scanner ebuilds |
|
|
Hi everybody,
I was writing a perl application that uses these two packages and noticed there were no ebuilds for them. I threw some together, I'm not really sure if they're correct or not, but I emerged them and the packages worked on my machine, so I figured I'd throw them out here on the forum... if anyone more experienced than I would care to look at them and submit them to the portage tree if they are correct, be my guest -- just wanted to share them in case anyone needs them.
/usr/portage/dev-perl/XML-SAX-PurePerl/XML-SAX-PurePerl-0.80.ebuild
| Code: | # Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
inherit perl-module
DESCRIPTION="A Pure Perl XML Parser with SAX2 interface"
HOMEPAGE="http://www.cpan.org/modules/by-module/XML/${P}.readme"
SRC_URI="http://www.cpan.org/modules/by-module/XML/${P}.tar.gz"
DEPEND="dev-perl/XML-SAX"
SLOT="0"
LICENSE="Artistic"
KEYWORDS="x86 amd64 ppc sparc alpha"
mymake="/usr" |
and
/usr/portage/dev-perl/Nmap-Scanner/Nmap-Scanner-0.5.ebuild
| Code: | # Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
inherit perl-module
DESCRIPTION="Perl extension for performing nmap"
HOMEPAGE="http://www.cpan.org/modules/by-module/Nmap/${P}.readme"
SRC_URI="http://www.cpan.org/modules/by-module/Nmap/${P}.tar.gz"
DEPEND="dev-perl/XML-SAX
dev-perl/XML-SAX-PurePerl
net-analyzer/nmap"
SLOT="0"
LICENSE="Artistic"
KEYWORDS="x86 amd64 ppc sparc alpha"
mymake="/usr"
src_compile() {
echo n |perl Makefile.PL ${myconf} \
PREFIX=${D}/usr
make || test
} |
I don't know if the PurePerl module needs one of those little src_compile() jobs in it, but it seemed to install correctly - most of this was made just by copying & pasting from existing ebuilds. You will also need to run ebuild {filename of ebuild} digest in order to generate all those little Manifest files and whatnot. Enjoy! |
|