pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/cabal-install Remove variable path components har...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c1ad1a8b9f4e
branches:  trunk
changeset: 440616:c1ad1a8b9f4e
user:      pho <pho%pkgsrc.org@localhost>
date:      Tue Oct 13 12:27:11 2020 +0000

description:
Remove variable path components hard-coded in PLIST

diffstat:

 misc/cabal-install/Makefile |  13 +++++++++++--
 misc/cabal-install/PLIST    |   4 +---
 2 files changed, 12 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r 15f2f6c2fed5 -r c1ad1a8b9f4e misc/cabal-install/Makefile
--- a/misc/cabal-install/Makefile       Tue Oct 13 12:16:38 2020 +0000
+++ b/misc/cabal-install/Makefile       Tue Oct 13 12:27:11 2020 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2020/10/13 12:08:10 pho Exp $
+# $NetBSD: Makefile,v 1.3 2020/10/13 12:27:11 pho Exp $
 
 DISTNAME=      cabal-install-3.0.0.0
 PKGNAME=       ${DISTNAME}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    misc
 
 MAINTAINER=    pho%cielonegro.org@localhost
@@ -15,6 +15,15 @@
 SUBST_FILES.mandir+=   Setup.hs
 SUBST_VARS.mandir+=    PKGMANDIR
 
+# cabal-install installs a LICENSE file under
+# share/doc/${PLATFORM}-ghc-${GHC_VERSION}/${PKGNAME}. Variables in
+# paths are usually handled by ../../mk/haskell.mk, but in this case
+# it can't, because the package installs no libraries and therefore
+# doesn't have the package-description file. Remove share/doc to work
+# around this.
+post-install:
+       ${RM} -r ${DESTDIR}${PREFIX}/share/doc
+
 .include "../../devel/hs-async/buildlink3.mk"
 .include "../../converters/hs-base16-bytestring/buildlink3.mk"
 .include "../../security/hs-cryptohash-sha256/buildlink3.mk"
diff -r 15f2f6c2fed5 -r c1ad1a8b9f4e misc/cabal-install/PLIST
--- a/misc/cabal-install/PLIST  Tue Oct 13 12:16:38 2020 +0000
+++ b/misc/cabal-install/PLIST  Tue Oct 13 12:27:11 2020 +0000
@@ -1,5 +1,3 @@
-@comment $NetBSD: PLIST,v 1.1 2020/10/13 12:08:58 pho Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/10/13 12:27:11 pho Exp $
 bin/cabal
 man/man1/cabal.1
-share/doc/x86_64-netbsd-ghc-8.8.4/${PKGNAME}/LICENSE
-@pkgdir lib/${PKGNAME}/ghc-8.8.4



Home | Main Index | Thread Index | Old Index