diff options
author | vs <vs@FreeBSD.org> | 2005-11-09 18:03:54 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2005-11-09 18:03:54 +0800 |
commit | 61933e5e4dd8f862fb4a859686ea2003f4ffe8d8 (patch) | |
tree | 6c5d6d0dd37070ff9a203ad9b55b979fadd6511f /x11-toolkits | |
parent | 48f2f029a6c553e387bb6c7740406dbea24eee69 (diff) | |
download | freebsd-ports-gnome-61933e5e4dd8f862fb4a859686ea2003f4ffe8d8.tar.gz freebsd-ports-gnome-61933e5e4dd8f862fb4a859686ea2003f4ffe8d8.tar.zst freebsd-ports-gnome-61933e5e4dd8f862fb4a859686ea2003f4ffe8d8.zip |
- Use new ghc-pkg infrastructure
- Bump PORTREVISION since installing from package wouldn't work
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/hs-gtk2hs/Makefile | 8 | ||||
-rw-r--r-- | x11-toolkits/hs-gtk2hs/files/pkg-install.in | 19 | ||||
-rw-r--r-- | x11-toolkits/hs-gtk2hs/pkg-plist | 18 |
3 files changed, 27 insertions, 18 deletions
diff --git a/x11-toolkits/hs-gtk2hs/Makefile b/x11-toolkits/hs-gtk2hs/Makefile index 99353ea7fa7b..a82ff0380989 100644 --- a/x11-toolkits/hs-gtk2hs/Makefile +++ b/x11-toolkits/hs-gtk2hs/Makefile @@ -7,6 +7,7 @@ PORTNAME= gtk2hs PORTVERSION= 0.9.10 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= x11-toolkits haskell MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} @@ -23,8 +24,15 @@ RUN_DEPENDS= ${BUILD_DEPENDS} USE_GNOME= gtk20 libglade2 gtksourceview gconf2 GNU_CONFIGURE= yes USE_GMAKE= yes +SUB_FILES= pkg-install +PKGDEINSTALL= ${PKGINSTALL} GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version` PLIST_SUB+= GHC_VERSION="${GHC_VERSION}" +SUB_LIST+= GHC_VERSION="${GHC_VERSION}" \ + PORTVERSION=${PORTVERSION} \ + PKGS="${PKGS}" + +PKGS= cairo glib gtk mogul glade gconf sourceview mozembed .include <bsd.port.mk> diff --git a/x11-toolkits/hs-gtk2hs/files/pkg-install.in b/x11-toolkits/hs-gtk2hs/files/pkg-install.in new file mode 100644 index 000000000000..05bb2cf14e0a --- /dev/null +++ b/x11-toolkits/hs-gtk2hs/files/pkg-install.in @@ -0,0 +1,19 @@ +#!/bin/sh + +pkglibdir=$PKG_PREFIX/lib/gtk2hs +ghcpkg=%%LOCALBASE%%/bin/ghc-pkg + +case "$2" in +POST-INSTALL) + for p in %%PKGS%%; do + $ghcpkg --auto-ghci-libs update $pkglibdir/$p.package.conf ; + done + /bin/rm -f %%LOCALBASE%%/lib/ghc-%%GHC_VERSION%%/package.conf.old + ;; +DEINSTALL) + for p in %%PKGS%%; do + $ghcpkg unregister $p-%%PORTVERSION%% ; + done + /bin/rm -f %%LOCALBASE%%/lib/ghc-%%GHC_VERSION%%/package.conf.old + ;; +esac diff --git a/x11-toolkits/hs-gtk2hs/pkg-plist b/x11-toolkits/hs-gtk2hs/pkg-plist index 3a6d8c016d17..491ce5764221 100644 --- a/x11-toolkits/hs-gtk2hs/pkg-plist +++ b/x11-toolkits/hs-gtk2hs/pkg-plist @@ -295,21 +295,3 @@ lib/gtk2hs/libHSsourceview.a @dirrm lib/gtk2hs/imports @dirrm lib/gtk2hs/include @dirrm lib/gtk2hs -@exec env pkglibdir=%D/lib/gtk2hs %D/bin/ghc-pkg -i %D/lib/gtk2hs/glib.package.conf -a -g -@exec env pkglibdir=%D/lib/gtk2hs %D/bin/ghc-pkg -i %D/lib/gtk2hs/cairo.package.conf -a -g -@exec env pkglibdir=%D/lib/gtk2hs %D/bin/ghc-pkg -i %D/lib/gtk2hs/gtk.package.conf -a -g -@exec env pkglibdir=%D/lib/gtk2hs %D/bin/ghc-pkg -i %D/lib/gtk2hs/mogul.package.conf -a -g -@exec env pkglibdir=%D/lib/gtk2hs %D/bin/ghc-pkg -i %D/lib/gtk2hs/glade.package.conf -a -g -@exec env pkglibdir=%D/lib/gtk2hs %D/bin/ghc-pkg -i %D/lib/gtk2hs/gconf.package.conf -a -g -@exec env pkglibdir=%D/lib/gtk2hs %D/bin/ghc-pkg -i %D/lib/gtk2hs/sourceview.package.conf -a -g -@exec env pkglibdir=%D/lib/gtk2hs %D/bin/ghc-pkg -i %D/lib/gtk2hs/mozembed.package.conf -a -g -@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old -@unexec %D/bin/ghc-pkg -r mozembed -@unexec %D/bin/ghc-pkg -r sourceview -@unexec %D/bin/ghc-pkg -r gconf -@unexec %D/bin/ghc-pkg -r glade -@unexec %D/bin/ghc-pkg -r mogul -@unexec %D/bin/ghc-pkg -r gtk -@unexec %D/bin/ghc-pkg -r glib -@unexec %D/bin/ghc-pkg -r cairo -@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |