aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/hs-xmonad
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2008-02-20 09:10:09 +0800
committeralepulver <alepulver@FreeBSD.org>2008-02-20 09:10:09 +0800
commitf5fbae98aa644a30e39561a2c0fbe0acce108f1a (patch)
treed4e6f8a8080a76d05a418f8401a1a22dfb59c562 /x11-wm/hs-xmonad
parent98e081ee4fb3d8e944e05dae42fd5330da10396c (diff)
downloadfreebsd-ports-graphics-f5fbae98aa644a30e39561a2c0fbe0acce108f1a.tar.gz
freebsd-ports-graphics-f5fbae98aa644a30e39561a2c0fbe0acce108f1a.tar.zst
freebsd-ports-graphics-f5fbae98aa644a30e39561a2c0fbe0acce108f1a.zip
- Update to version 0.6.
- Add note to ports/UPDATING about configuration files. PR: ports/120234 Submitted by: Matthieu GUEGAN <matt.guegan@free.fr> (maintainer)
Diffstat (limited to 'x11-wm/hs-xmonad')
-rw-r--r--x11-wm/hs-xmonad/Makefile27
-rw-r--r--x11-wm/hs-xmonad/distinfo6
-rw-r--r--x11-wm/hs-xmonad/pkg-plist21
3 files changed, 37 insertions, 17 deletions
diff --git a/x11-wm/hs-xmonad/Makefile b/x11-wm/hs-xmonad/Makefile
index d5f5b73ae58..2fd9c6814bc 100644
--- a/x11-wm/hs-xmonad/Makefile
+++ b/x11-wm/hs-xmonad/Makefile
@@ -6,37 +6,36 @@
#
PORTNAME= xmonad
-PORTVERSION= 0.4
+PORTVERSION= 0.6
CATEGORIES= x11-wm haskell
MASTER_SITES= http://hackage.haskell.org/packages/archive/xmonad/${PORTVERSION}/
MAINTAINER= matt.guegan@free.fr
COMMENT= Xmonad is a minimalist and tiling window manager for X
+BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
+ hs-x11-ghc>=1.4.1:${PORTSDIR}/x11/hs-x11-ghc
+LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4
+
USE_XLIB= yes
CABALCMD= ${LOCALBASE}/bin/runghc Setup.lhs
+GHC_VERSION= 6.8.2
+SUBDIR= lib/${PORTNAME}-${PORTVERSION}
+PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
+ SUBDIR=${SUBDIR}
-.include <bsd.port.pre.mk>
-
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-extras-ghc>=0.4:${PORTSDIR}/x11/hs-x11-extras-ghc
-LIB_DEPENDS+= gmp.7:${PORTSDIR}/math/libgmp4
-
-PLIST_FILES= bin/xmonad
-PORTDOCS= LICENSE
MAN1= xmonad.1
do-configure:
cd ${WRKSRC} && ${CABALCMD} configure --ghc --prefix=${PREFIX}
do-build:
- cd ${WRKSRC} && ${CABALCMD} build
+ cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} register --gen-script
do-install:
- @cd ${WRKSRC} && ${CABALCMD} install
+ cd ${WRKSRC} && ${CABALCMD} install
${INSTALL_MAN} ${WRKSRC}/man/xmonad.1 ${MAN1PREFIX}/man/man1
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${SUBDIR}/register.sh
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/x11-wm/hs-xmonad/distinfo b/x11-wm/hs-xmonad/distinfo
index 3d7ece96fc6..59766261fef 100644
--- a/x11-wm/hs-xmonad/distinfo
+++ b/x11-wm/hs-xmonad/distinfo
@@ -1,3 +1,3 @@
-MD5 (xmonad-0.4.tar.gz) = 5d24c556f7c8f04954721b391fd79a13
-SHA256 (xmonad-0.4.tar.gz) = 978fb99e40786070307992fde78fe252b96e834740fb983b94c3a395c45467bb
-SIZE (xmonad-0.4.tar.gz) = 41025
+MD5 (xmonad-0.6.tar.gz) = 5e431d5e13cfb5cbcde2f5a3f813796a
+SHA256 (xmonad-0.6.tar.gz) = e107c5dbc659b2342e0e736d9baee0ee88a1404fa5161481b1924f23d3367c21
+SIZE (xmonad-0.6.tar.gz) = 49635
diff --git a/x11-wm/hs-xmonad/pkg-plist b/x11-wm/hs-xmonad/pkg-plist
new file mode 100644
index 00000000000..f42eafea264
--- /dev/null
+++ b/x11-wm/hs-xmonad/pkg-plist
@@ -0,0 +1,21 @@
+bin/xmonad
+%%SUBDIR%%/ghc-%%GHC_VERSION%%/HSxmonad-0.6.o
+%%SUBDIR%%/ghc-%%GHC_VERSION%%/XMonad.hi
+%%SUBDIR%%/ghc-%%GHC_VERSION%%/XMonad/Config.hi
+%%SUBDIR%%/ghc-%%GHC_VERSION%%/XMonad/Core.hi
+%%SUBDIR%%/ghc-%%GHC_VERSION%%/XMonad/Layout.hi
+%%SUBDIR%%/ghc-%%GHC_VERSION%%/XMonad/Main.hi
+%%SUBDIR%%/ghc-%%GHC_VERSION%%/XMonad/ManageHook.hi
+%%SUBDIR%%/ghc-%%GHC_VERSION%%/XMonad/Operations.hi
+%%SUBDIR%%/ghc-%%GHC_VERSION%%/XMonad/StackSet.hi
+%%SUBDIR%%/ghc-%%GHC_VERSION%%/libHSxmonad-0.6.a
+%%SUBDIR%%/register.sh
+share/doc/xmonad-0.6/LICENSE
+@dirrm share/doc/xmonad-0.6
+@dirrm %%SUBDIR%%/ghc-%%GHC_VERSION%%/XMonad
+@dirrm %%SUBDIR%%/ghc-%%GHC_VERSION%%
+@dirrm lib/xmonad-0.6
+@exec /bin/sh %D/%%SUBDIR%%/register.sh
+@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
+@unexec %D/bin/ghc-pkg unregister xmonad
+@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old