summaryrefslogtreecommitdiff
path: root/lang/ghc7
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-01-31 09:04:36 +0000
committerobache <obache@pkgsrc.org>2014-01-31 09:04:36 +0000
commit7933d2a784977d49576cd6041c2c9b450689c81e (patch)
tree9c352f0f1e2829b34e7abf8e9d1e9c9f33fd865b /lang/ghc7
parenta3baf041e8b4a919456b55ac60d5616a2e2d34c3 (diff)
downloadpkgsrc-7933d2a784977d49576cd6041c2c9b450689c81e.tar.gz
Add dynamic PLIST support with USE_DESTDIR=no, and also simplify for reverse
condition. inspired by print-PLIST.
Diffstat (limited to 'lang/ghc7')
-rw-r--r--lang/ghc7/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/lang/ghc7/Makefile b/lang/ghc7/Makefile
index a426d219e07..361c272d645 100644
--- a/lang/ghc7/Makefile
+++ b/lang/ghc7/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2014/01/30 07:57:35 obache Exp $
+# $NetBSD: Makefile,v 1.6 2014/01/31 09:04:36 obache Exp $
# -----------------------------------------------------------------------------
# Package metadata
#
@@ -153,12 +153,13 @@ PRINT_PLIST_AWK+= /lib\/${PKGNAME_NOREV}\/package\.conf\.d/ { next; }
# feature has seemingly bitrotted.
.include "../../mk/bsd.prefs.mk"
.if empty(USE_DESTDIR:M[Yy][Ee][Ss])
-PKG_FAIL_REASON+="This package can not be built without using DESTDIR.\
-You need to set USE_DESTDIR to \"yes\"."
+GENERATE_PLIST+= \
+ cd ${PREFIX:Q} && \
+ ${FIND} lib/${PKGNAME_NOREV}/package.conf.d -xdev -newer ${_COOKIE.extract} \! -type d -print | ${SORT} -d;
.else
GENERATE_PLIST+= \
cd ${DESTDIR:Q}${PREFIX:Q} && \
- ${FIND} lib/${PKGNAME_NOREV}/package.conf.d \( -type f -o -type l \) | ${SORT} -d;
+ ${FIND} lib/${PKGNAME_NOREV}/package.conf.d -xdev \! -type d -print | ${SORT} -d;
.endif