aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwen <wen@FreeBSD.org>2009-10-11 17:00:39 +0800
committerwen <wen@FreeBSD.org>2009-10-11 17:00:39 +0800
commitfa0a51f72988f6b10e2082da29afda02e64a6dc8 (patch)
tree3c50050364e3f6ca73be8dfe21286957e8f2c4a4
parent303eed7b416d76d71633495048bc8d1b8c278eb4 (diff)
downloadfreebsd-ports-gnome-fa0a51f72988f6b10e2082da29afda02e64a6dc8.tar.gz
freebsd-ports-gnome-fa0a51f72988f6b10e2082da29afda02e64a6dc8.tar.zst
freebsd-ports-gnome-fa0a51f72988f6b10e2082da29afda02e64a6dc8.zip
- Add Perl support
PR: ports/139451 Submitted by: Gea-Suan Lin <gslin@gslin.org> (maintainer) Approved by: miwi(mentor)
-rw-r--r--devel/fb303/Makefile11
-rw-r--r--devel/fb303/pkg-plist5
2 files changed, 16 insertions, 0 deletions
diff --git a/devel/fb303/Makefile b/devel/fb303/Makefile
index 30d3ce37a5e6..f513a7cb868c 100644
--- a/devel/fb303/Makefile
+++ b/devel/fb303/Makefile
@@ -7,6 +7,7 @@
PORTNAME= fb303
PORTVERSION= 20090622
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= bms
@@ -26,11 +27,21 @@ PYTHON_VERSION_SHORTNAME= ${PYTHON_VERSION:S/thon//}
USE_AUTOTOOLS= aclocal:19 automake:19 autoconf:262
USE_BZIP2= yes
USE_GMAKE= yes
+USE_PERL5_RUN= yes
USE_PYTHON= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/contrib/fb303
.include <bsd.port.pre.mk>
+post-build:
+ (cd ${WRKSRC} && ${LOCALBASE}/bin/thrift --gen perl ${WRKSRC}/if/fb303.thrift)
+
+post-install:
+ ${MKDIR} ${PREFIX}/${SITE_PERL_REL}/Facebook/FB303
+.for FILE in Constants.pm FacebookService.pm Types.pm
+ ${INSTALL_DATA} ${WRKSRC}/gen-perl/Facebook/FB303/${FILE} ${PREFIX}/${SITE_PERL_REL}/Facebook/FB303
+.endfor
+
.if ${OSVERSION} < 700000
IGNORE= not supported
.endif
diff --git a/devel/fb303/pkg-plist b/devel/fb303/pkg-plist
index 7188d183d602..2dcc7f725204 100644
--- a/devel/fb303/pkg-plist
+++ b/devel/fb303/pkg-plist
@@ -15,6 +15,9 @@
%%PYTHON_SITELIBDIR%%/fb303_scripts/__init__.pyc
%%PYTHON_SITELIBDIR%%/fb303_scripts/fb303_simple_mgmt.py
%%PYTHON_SITELIBDIR%%/fb303_scripts/fb303_simple_mgmt.pyc
+%%SITE_PERL%%/Facebook/FB303/Constants.pm
+%%SITE_PERL%%/Facebook/FB303/FacebookService.pm
+%%SITE_PERL%%/Facebook/FB303/Types.pm
include/thrift/fb303/FacebookBase.h
include/thrift/fb303/FacebookService.h
include/thrift/fb303/ServiceTracker.h
@@ -23,6 +26,8 @@ include/thrift/fb303/fb303_types.h
lib/libfb303.a
@dirrmtry include/thrift/fb303
@dirrmtry include/thrift
+@dirrmtry %%SITE_PERL%%/Facebook/FB303
+@dirrmtry %%SITE_PERL%%/Facebook
@dirrmtry %%PYTHON_SITELIBDIR%%/fb303_scripts
@dirrmtry %%PYTHON_SITELIBDIR%%/fb303
@dirrmtry %%DATADIR%%/if