- migrated port - standardized pkg-descr - option switching to executables with profiling enabled --- devel/hs-uuagc/Makefile | 32 +++++++++++++++----------------- devel/hs-uuagc/pkg-descr | 8 +++++--- devel/hs-uuagc/pkg-plist | 3 --- 3 files changed, 20 insertions(+), 23 deletions(-) delete mode 100644 devel/hs-uuagc/pkg-plist diff --git a/devel/hs-uuagc/Makefile b/devel/hs-uuagc/Makefile index 6994baf..1c710ec 100644 --- a/devel/hs-uuagc/Makefile +++ b/devel/hs-uuagc/Makefile @@ -8,37 +8,35 @@ PORTNAME= uuagc PORTVERSION= 0.9.7 CATEGORIES= devel haskell -MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +MASTER_SITES= ${MASTER_SITE_HACKAGE} PKGNAMEPREFIX= hs- MAINTAINER= jacula@gmail.com -COMMENT= Attribute Grammar System of Universiteit Utrecht +COMMENT?= Attribute Grammar System of Universiteit Utrecht -BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ - hs-uulib>=0.9.5:${PORTSDIR}/devel/hs-uulib +BUILD_DEPENDS+= hs-uulib>=0.9.5:${PORTSDIR}/devel/hs-uulib LIB_DEPENDS+= gmp.7:${PORTSDIR}/math/libgmp4 -GHC_VERSION= 6.8.3 +USE_CABAL+= distrsimple:full noreg -GHC_CMD= ${LOCALBASE}/bin/ghc -SETUP_CMD= ./setup +PLIST_FILES= bin/${D_NAME}${PKGNAMESUFFIX} %%DOCSDIR%%/LICENSE +PLIST_DIRS= %%DOCSDIR%% -DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +OPTIONS= XPROFILE "Executables with profiling enabled" off -.SILENT: +.include <bsd.port.options.mk> -do-configure: - cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \ - && ${SETUP_CMD} configure --prefix=${PREFIX} +.if !defined(WITHOUT_XPROFILE) +USE_CABAL+= profile:all:exec:full +PROFILE_DEPENDS= libHSuulib-%%ver%%:${PORTSDIR}/devel/hs-uulib +.endif -do-build: - cd ${WRKSRC} && ${SETUP_CMD} build +.include <bsd.port.pre.mk> -do-install: - cd ${WRKSRC} && ${SETUP_CMD} install +.SILENT: post-install: ${STRIP_CMD} ${PREFIX}/bin/uuagc ${CHMOD} ${BINMODE} ${PREFIX}/bin/uuagc -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/devel/hs-uuagc/pkg-descr b/devel/hs-uuagc/pkg-descr index 0d88690..b32a001 100644 --- a/devel/hs-uuagc/pkg-descr +++ b/devel/hs-uuagc/pkg-descr @@ -6,7 +6,9 @@ It is a preprocessor for Haskell which makes it easy to write catamorphisms You can define tree walks using the intuitive concepts of inherited and synthesized attributes, while keeping the full expressive power of Haskell. -maintainer: Arie Middelkoop <ariem@cs.uu.nl> -license: GPL-2 +Maintainer: Arie Middelkoop <ariem@cs.uu.nl> +License: GPL-2 WWW: http://www.cs.uu.nl/wiki/HUT/AttributeGrammarSystem -package-url: http://nix.cs.uu.nl/dist/hut/ +Package-url: http://nix.cs.uu.nl/dist/hut/ + +Executable: uuagc diff --git a/devel/hs-uuagc/pkg-plist b/devel/hs-uuagc/pkg-plist deleted file mode 100644 index f2ca2c9..0000000 --- a/devel/hs-uuagc/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -bin/uuagc -%%DOCSDIR%%/LICENSE -@dirrm %%DOCSDIR%% -- 1.6.1.3
participants (1)
-
Jacula Modyun