Bug 98014

Summary: [New Port] www/p5-Net-eBay Perl Interface to XML based eBay API
Product: Ports & Packages Reporter: Alexander Zhuravlev <zaa>
Component: Individual Port(s)Assignee: Aaron Dalton <aaron>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
p5-Net-eBay.diff none

Description Alexander Zhuravlev 2006-05-27 17:00:36 UTC
	New port p5-Net-eBay provides Perl Interface to XML based eBay API.
Comment 1 Aaron Dalton freebsd_committer freebsd_triage 2006-05-29 18:05:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->aaron

I'll take it.
Comment 2 Aaron Dalton freebsd_committer freebsd_triage 2006-05-30 21:08:26 UTC
Hello, Alexander!  The port looks fine except it would be nice if the 
two example scripts could be kept instead of deleted.  What you would do 
  is use the NOPORTDOCS/%%PORTDOCS%% variables in both your Makefile and 
pkg-plist.  devel/p5-Class-Contract is a good example.  Just copy those 
two scripts to EXAMPLESDIR as devel/p5-Class-Contract does.  If you have 
any questions, don't hesitate to ask!

Cheers!
-- 
Aaron Dalton
aaron@FreeBSD.org
FreeBSD Ports Committer
Comment 3 Aaron Dalton freebsd_committer freebsd_triage 2006-05-30 21:15:14 UTC
State Changed
From-To: open->feedback

Ask for submitter fix.
Comment 4 Alexander Zhuravlev 2006-06-01 23:17:56 UTC
Below is shar archive of the new version that installs examples.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	p5-Net-eBay/
#	p5-Net-eBay/Makefile
#	p5-Net-eBay/distinfo
#	p5-Net-eBay/files
#	p5-Net-eBay/files/patch-MANIFEST
#	p5-Net-eBay/files/patch-Makefile.PL
#	p5-Net-eBay/pkg-descr
#	p5-Net-eBay/pkg-plist
#
echo c - p5-Net-eBay/
mkdir -p p5-Net-eBay/ > /dev/null 2>&1
echo x - p5-Net-eBay/Makefile
sed 's/^X//' >p5-Net-eBay/Makefile << 'END-of-p5-Net-eBay/Makefile'
X# New ports collection makefile for:	p5-Net-eBay
X# Date created:				Sat May 27 13:25:11 UTC 2006
X# Whom:	      				Alexander Zhuravlev <zaa@zaa.pp.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Net-eBay
XPORTVERSION=	0.33
XCATEGORIES=	www perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	Net
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	zaa@zaa.pp.ru
XCOMMENT=	Perl Interface to XML based eBay API
X
XBUILD_DEPENDS=	${SITE_PERL}/Bundle/LWP.pm:${PORTSDIR}/www/p5-libwww
XBUILD_DEPENDS+=	${SITE_PERL}/XML/Simple.pm:${PORTSDIR}/textproc/p5-XML-Simple
XBUILD_DEPENDS+=	${SITE_PERL}/XML/Dumper.pm:${PORTSDIR}/textproc/p5-XML-Dumper
XBUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Crypt/SSLeay.pm:${PORTSDIR}/security/p5-Crypt-SSLeay
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XPERL_CONFIGURE=	yes
XINSTALL_TARGET=	pure_install
XPLIST_SUB+=	EXAMPLESDIR="share/examples/${PORTNAME}"
X
XMAN3=		Net::eBay.3
X
X.include <bsd.port.pre.mk>
X
X.if ${PERL_LEVEL} < 500600
XIGNORE=		needs Perl 5.6 or later
X.endif
X
Xpre-configure:
X	${MKDIR} ${WRKSRC}/examples
X	${MV} ${WRKSRC}/*.pl ${WRKSRC}/examples
X
Xpost-install:
X.ifndef(NOPORTDOCS)
X	@${ECHO_MSG} "===>   Installing examples for ${PKGNAME}"
X	@${MKDIR} ${EXAMPLESDIR}
X	${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${EXAMPLESDIR}
X.endif
X
X.include <bsd.port.post.mk>
END-of-p5-Net-eBay/Makefile
echo x - p5-Net-eBay/distinfo
sed 's/^X//' >p5-Net-eBay/distinfo << 'END-of-p5-Net-eBay/distinfo'
XMD5 (Net-eBay-0.33.tar.gz) = 85a30fdfdee0db8f4498fde0097b1d30
XSHA256 (Net-eBay-0.33.tar.gz) = 7d597df027bfc950f9f03071d643b81ec7389370b786181fdf1875fd44610f2a
XSIZE (Net-eBay-0.33.tar.gz) = 11955
END-of-p5-Net-eBay/distinfo
echo c - p5-Net-eBay/files
mkdir -p p5-Net-eBay/files > /dev/null 2>&1
echo x - p5-Net-eBay/files/patch-MANIFEST
sed 's/^X//' >p5-Net-eBay/files/patch-MANIFEST << 'END-of-p5-Net-eBay/files/patch-MANIFEST'
X--- MANIFEST.orig	Sat May 27 18:13:17 2006
X+++ MANIFEST	Sat May 27 18:13:27 2006
X@@ -7,11 +7,3 @@ lib/Net/eBay.pm
X t/00-load.t
X t/pod-coverage.t
X t/pod.t
X-ebay-add-item.pl
X-ebay-get-categories.pl
X-ebay-official-time.pl
X-ebay-validate-test-user.pl
X-ebay-get-my-selling.pl
X-ebay-get-seller-list.pl
X-ebay-get-suggested-categories.pl
X-ebay-search.pl
END-of-p5-Net-eBay/files/patch-MANIFEST
echo x - p5-Net-eBay/files/patch-Makefile.PL
sed 's/^X//' >p5-Net-eBay/files/patch-Makefile.PL << 'END-of-p5-Net-eBay/files/patch-Makefile.PL'
X--- Makefile.PL.orig	Sat May 27 17:51:15 2006
X+++ Makefile.PL	Sat May 27 17:52:00 2006
X@@ -8,9 +8,7 @@ WriteMakefile(
X               VERSION_FROM        => 'lib/Net/eBay.pm',
X               ABSTRACT            => 'XML based communication with eBay API',
X               PL_FILES            => {},
X-              EXE_FILES           => [ 'ebay-official-time.pl', 'ebay-validate-test-user.pl',
X-                                       'ebay-get-categories.pl', 'ebay-add-item.pl', 'ebay-search.pl'
X-                                     ],
X+
X               PREREQ_PM => {
X                             'Test::More' => 0,
X                             'XML::Simple' => 0,
END-of-p5-Net-eBay/files/patch-Makefile.PL
echo x - p5-Net-eBay/pkg-descr
sed 's/^X//' >p5-Net-eBay/pkg-descr << 'END-of-p5-Net-eBay/pkg-descr'
XNet::eBay allows super easy access to eBay for any perl developer.
XMake an instance of Net::eBay and then call submitRequest to send
Xrequests to eBay.
X
XSupports both Legacy API as well as NEW API. 
X
XWWW: http://search.cpan.org/dist/Net-eBay/
X
X-- Alexander Zhuravlev
Xzaa@zaa.pp.ru
END-of-p5-Net-eBay/pkg-descr
echo x - p5-Net-eBay/pkg-plist
sed 's/^X//' >p5-Net-eBay/pkg-plist << 'END-of-p5-Net-eBay/pkg-plist'
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/eBay/.packlist
X%%SITE_PERL%%/Net/eBay.pm
X%%PORTDOCS%%%%EXAMPLESDIR%%/ebay-add-item.pl
X%%PORTDOCS%%%%EXAMPLESDIR%%/ebay-get-categories.pl
X%%PORTDOCS%%%%EXAMPLESDIR%%/ebay-get-my-selling.pl
X%%PORTDOCS%%%%EXAMPLESDIR%%/ebay-get-seller-list.pl
X%%PORTDOCS%%%%EXAMPLESDIR%%/ebay-get-suggested-categories.pl
X%%PORTDOCS%%%%EXAMPLESDIR%%/ebay-official-time.pl
X%%PORTDOCS%%%%EXAMPLESDIR%%/ebay-search.pl
X%%PORTDOCS%%%%EXAMPLESDIR%%/ebay-validate-test-user.pl
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
X@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/eBay
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net
X@dirrmtry %%SITE_PERL%%/Net
END-of-p5-Net-eBay/pkg-plist
exit

-- 
Alexander Zhuravlev
Comment 5 Aaron Dalton freebsd_committer freebsd_triage 2006-06-02 04:39:58 UTC
State Changed
From-To: feedback->closed

New port added. Thanks!