diff options
author | bapt <bapt@FreeBSD.org> | 2013-09-25 07:32:30 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-09-25 07:32:30 +0800 |
commit | d2201662e2a679f144298af368f0ae0684a48e0c (patch) | |
tree | 5c4d501ee379d7b2629a745bb5705a4181d65630 /devel/bsdbuild | |
parent | 5d05118e6926893cb96c1ce9c6947433df49e088 (diff) | |
download | freebsd-ports-gnome-d2201662e2a679f144298af368f0ae0684a48e0c.tar.gz freebsd-ports-gnome-d2201662e2a679f144298af368f0ae0684a48e0c.tar.zst freebsd-ports-gnome-d2201662e2a679f144298af368f0ae0684a48e0c.zip |
Fix packaging (one of the Makefile wasn't DESTDIR aware)
While here fix shebang on perl scripts
Diffstat (limited to 'devel/bsdbuild')
-rw-r--r-- | devel/bsdbuild/Makefile | 5 | ||||
-rw-r--r-- | devel/bsdbuild/files/patch-ManReader__Makefile | 31 | ||||
-rw-r--r-- | devel/bsdbuild/pkg-plist | 2 |
3 files changed, 36 insertions, 2 deletions
diff --git a/devel/bsdbuild/Makefile b/devel/bsdbuild/Makefile index 15e7edb75ea9..eec99b83344b 100644 --- a/devel/bsdbuild/Makefile +++ b/devel/bsdbuild/Makefile @@ -2,14 +2,15 @@ PORTNAME= bsdbuild PORTVERSION= 3.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= http://stable.hypertriton.com/bsdbuild/ MAINTAINER= ports@FreeBSD.org COMMENT= BSD-licensed portable build system -USES= perl5 +USES= perl5 shebangfix +SHEBANG_FILES= *.pl mk/*.pl GNU_CONFIGURE= yes LICENSE= BSD diff --git a/devel/bsdbuild/files/patch-ManReader__Makefile b/devel/bsdbuild/files/patch-ManReader__Makefile new file mode 100644 index 000000000000..4cf2fb15ad6e --- /dev/null +++ b/devel/bsdbuild/files/patch-ManReader__Makefile @@ -0,0 +1,31 @@ +--- ./ManReader/Makefile.orig 2012-07-27 06:21:45.000000000 +0200 ++++ ./ManReader/Makefile 2013-09-25 01:25:39.843961894 +0200 +@@ -5,23 +5,23 @@ + all: + + install: +- @if [ ! -d "${DATADIR}/ManReader" ]; then \ ++ @if [ ! -d "${DESTDIR}${DATADIR}/ManReader" ]; then \ + echo "${INSTALL_DATA_DIR} ${DATADIR}/ManReader"; \ +- ${SUDO} ${INSTALL_DATA_DIR} ${DATADIR}/ManReader; \ ++ ${SUDO} ${INSTALL_DATA_DIR} ${DESTDIR}${DATADIR}/ManReader; \ + fi; \ + for F in ${DATAFILES}; do \ + echo "${INSTALL_DATA} $$F ${DATADIR}/ManReader"; \ +- ${SUDO} ${INSTALL_DATA} $$F ${DATADIR}/ManReader; \ ++ ${SUDO} ${INSTALL_DATA} $$F ${DESTDIR}${DATADIR}/ManReader; \ + done + + install-links: + @if [ ! -d "${DATADIR}/ManReader" ]; then \ + echo "${INSTALL_DATA_DIR} ${DATADIR}/ManReader"; \ +- ${SUDO} ${INSTALL_DATA_DIR} ${DATADIR}/ManReader; \ ++ ${SUDO} ${INSTALL_DATA_DIR} ${DESTDIR}${DATADIR}/ManReader; \ + fi; \ + for F in ${DATAFILES}; do \ + echo "ln -sf `pwd`/$$F ${DATADIR}/ManReader/$$F"; \ +- ${SUDO} ln -sf `pwd`/$$F ${DATADIR}/ManReader/$$F; \ ++ ${SUDO} ln -sf `pwd`/$$F ${DESTDIR}${DATADIR}/ManReader/$$F; \ + done + + clean: diff --git a/devel/bsdbuild/pkg-plist b/devel/bsdbuild/pkg-plist index 767bc559ac3e..3036e54053de 100644 --- a/devel/bsdbuild/pkg-plist +++ b/devel/bsdbuild/pkg-plist @@ -139,6 +139,7 @@ %%DATADIR%%/libtool/configure.in %%DATADIR%%/libtool/ltconfig %%DATADIR%%/libtool/ltmain.sh +%%DATADIR%%/ManReader/Mdoc.pm %%DATADIR%%/manlinks.pl %%DATADIR%%/mkconcurrent.pl %%DATADIR%%/mkdep @@ -161,5 +162,6 @@ man/man5/build.prog.mk.5.gz man/man5/build.proj.mk.5.gz man/man5/build.www.mk.5.gz @dirrmtry %%DATADIR%%/libtool +@dirrmtry %%DATADIR%%/ManReader @dirrmtry %%DATADIR%%/BSDBuild @dirrmtry %%DATADIR%% |