diff options
-rw-r--r-- | devel/fb303/Makefile | 11 | ||||
-rw-r--r-- | devel/fb303/pkg-plist | 5 |
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 |