pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/ghc7 Add dynamic PLIST support with USE_DESTDIR=n...
details: https://anonhg.NetBSD.org/pkgsrc/rev/48ff102746f2
branches: trunk
changeset: 629899:48ff102746f2
user: obache <obache%pkgsrc.org@localhost>
date: Fri Jan 31 09:04:36 2014 +0000
description:
Add dynamic PLIST support with USE_DESTDIR=no, and also simplify for reverse
condition.
inspired by print-PLIST.
diffstat:
lang/ghc7/Makefile | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (26 lines):
diff -r 5af855c3dea9 -r 48ff102746f2 lang/ghc7/Makefile
--- a/lang/ghc7/Makefile Fri Jan 31 06:34:23 2014 +0000
+++ b/lang/ghc7/Makefile Fri Jan 31 09:04:36 2014 +0000
@@ -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 @@
# 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
Home |
Main Index |
Thread Index |
Old Index