pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/hugs Use copy and manual messing with the package...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8a3b5e5f0f75
branches: trunk
changeset: 570437:8a3b5e5f0f75
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri Jan 29 18:52:09 2010 +0000
description:
Use copy and manual messing with the package.conf in the DESTDIR case.
XXX Needs a better way to do this
diffstat:
lang/hugs/package.mk | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r 78f938a293ed -r 8a3b5e5f0f75 lang/hugs/package.mk
--- a/lang/hugs/package.mk Fri Jan 29 18:22:31 2010 +0000
+++ b/lang/hugs/package.mk Fri Jan 29 18:52:09 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: package.mk,v 1.3 2009/06/14 22:58:02 joerg Exp $
+# $NetBSD: package.mk,v 1.4 2010/01/29 18:52:09 joerg Exp $
#
PKGNAME= hugs98-${DISTNAME}
@@ -12,6 +12,8 @@
.include "../../lang/hugs/buildlink3.mk"
+.include "../../mk/bsd.fast.prefs.mk"
+
do-configure:
cd ${WRKSRC} && ${HUGS_RUN} -98 Setup.hs \
configure \
@@ -26,7 +28,19 @@
build \
--verbose
+.if ${_USE_DESTDIR} != "no"
do-install:
cd ${WRKSRC} && ${HUGS_RUN} -98 Setup.hs \
- install \
- --verbose
+ copy --verbose --destdir=${DESTDIR}
+ cd ${WRKSRC} && \
+ pkg=`awk '{ print $$2; nextfile }' < .installed-pkg-config` && \
+ echo $$pkg && \
+ ${INSTALL_DATA_DIR} \
+ ${DESTDIR}${PREFIX}/lib/hugs/packages/$$pkg/packages/$$pkg && \
+ ${INSTALL_DATA} .installed-pkg-config \
+ ${DESTDIR}${PREFIX}/lib/hugs/packages/$$pkg/packages/$$pkg/package.conf
+.else
+do-install:
+ cd ${WRKSRC} && ${HUGS_RUN} -98 Setup.hs \
+ install --verbose
+.endif
Home |
Main Index |
Thread Index |
Old Index