openbsd-ports/devel/darcs/Makefile

58 lines
1.6 KiB
Makefile
Raw Normal View History

2011-06-30 17:30:20 -04:00
# $OpenBSD: Makefile,v 1.42 2011/06/30 21:30:20 kili Exp $
2010-04-22 17:53:18 -04:00
COMMENT = advanced revision control system written in Haskell
DISTNAME = darcs-2.5.2
2011-06-30 17:30:20 -04:00
REVISION = 3
2010-04-22 17:53:18 -04:00
CATEGORIES = devel
HOMEPAGE = http://www.darcs.net/
2010-11-15 14:45:56 -05:00
WANTLIB = c curl>=2 gmp m ncursesw pthread util z
2010-04-22 17:53:18 -04:00
MODULES = lang/ghc converters/libiconv
MODGHC_BUILD = cabal hackage nort
MODGHC_SETUP_CONF_ARGS =-f '-library -threaded'
2010-11-15 14:45:56 -05:00
LIB_DEPENDS = devel/gmp \
net/curl
2010-04-22 17:53:18 -04:00
# Yes, build dependencies, because GHC libs are still static and we
# don't want to pull in all of ghc.
2010-11-15 14:45:56 -05:00
BUILD_DEPENDS = hs-tar->=0.3,<0.4:devel/hs-tar \
hs-zlib->=0.5.0,<0.6.0:archivers/hs-zlib \
hs-hashed-storage->=0.5.2,<0.6:devel/hs-hashed-storage \
hs-haskeline->=0.6.2.2,<0.7:devel/hs-haskeline \
hs-mtl->=1.0,<2.1:devel/hs-mtl \
2011-04-11 10:59:27 -04:00
hs-parsec->=2.0,<3.2:devel/hs-parsec \
2010-11-15 14:45:56 -05:00
hs-regex-compat->=0.71,<0.94:devel/hs-regex-compat \
hs-text->=0.3:devel/hs-text \
hs-html->=1.0,<1.1:www/hs-html \
2010-04-22 17:53:18 -04:00
${RUN_DEPENDS} \
2010-11-15 14:45:56 -05:00
textproc/latex2html
2010-04-22 17:53:18 -04:00
REGRESS_DEPENDS = devel/hs-hlint \
shells/bash
2010-04-22 17:53:18 -04:00
# For the documentation
USE_GMAKE = Yes
2010-11-15 14:45:56 -05:00
USE_GROFF = Yes
PORTHOME = ${WRKDIR}
2010-04-22 17:53:18 -04:00
post-build:
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} html
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/darcs
cd ${WRKBUILD}/doc/manual && umask 022 && pax -rw . ${PREFIX}/share/doc/darcs
# Wrong directory, and wrong permissions (600):
rm -rf ${PREFIX}/share/man
${INSTALL_MAN_DIR} ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKBUILD}/dist/build/darcs/darcs.1 ${PREFIX}/man/man1
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
.include <bsd.port.mk>