aboutsummaryrefslogtreecommitdiffstats
path: root/lang/hugs/Makefile
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-02-18 05:32:30 +0800
committersteve <steve@FreeBSD.org>1998-02-18 05:32:30 +0800
commitc8c4f8b6ba0c03c673ee894017d5a057ae3863cb (patch)
treeb7fb2768108b8c500162c5153b2d533bc66e7513 /lang/hugs/Makefile
parent5675e9d57719430be38de1b3c3471514ee40e799 (diff)
downloadfreebsd-ports-gnome-c8c4f8b6ba0c03c673ee894017d5a057ae3863cb.tar.gz
freebsd-ports-gnome-c8c4f8b6ba0c03c673ee894017d5a057ae3863cb.tar.zst
freebsd-ports-gnome-c8c4f8b6ba0c03c673ee894017d5a057ae3863cb.zip
MASTER_SITE has moved and some portlint cleaning.
PR: 5769 Submitted by: maintainer
Diffstat (limited to 'lang/hugs/Makefile')
-rw-r--r--lang/hugs/Makefile38
1 files changed, 17 insertions, 21 deletions
diff --git a/lang/hugs/Makefile b/lang/hugs/Makefile
index 130ff1b75ebf..c13073e3899f 100644
--- a/lang/hugs/Makefile
+++ b/lang/hugs/Makefile
@@ -1,13 +1,13 @@
# New ports collection makefile for: hugs
-# Version required: 1.4
+# Version required: 1.4 (January 1998)
# Date created: 22 September 1997
# Whom: Torsten Teg Grust (Torsten.Grust@uni-konstanz.de)
#
-# $Id: Makefile,v 1.2 1998/02/12 10:04:36 tg Exp $
+# $Id: Makefile,v 1.1.1.1 1997/11/24 00:10:18 fenner Exp $
#
DISTNAME= hugs-January1998-source
-PKGNAME= hugs-1.4.01.1998
+PKGNAME= hugs-1.4
CATEGORIES= lang
MASTER_SITES= ftp://haskell.org/pub/haskell/hugs/January1998/
EXTRACT_SUFX= .tgz
@@ -25,28 +25,24 @@ HUGS_DOC= ${WRKSRC}/../docs
MAN1= hugs.1
-pre-configure:
- ${MV} ${WRKSRC}/MkInstal.in ${WRKSRC}/MkInstal.in.orig
- ${SED} -e "s#/bin/cp#${INSTALL_DATA}#" \
- -e "s#unix/install-sh#${INSTALL_PROGRAM}#" \
- -e 's#$$(INSTALL) -d#${INSTALL_DIR}#' \
- < ${WRKSRC}/MkInstal.in.orig > ${WRKSRC}/MkInstal.in
-
post-install:
- ${MV} ${HUGS_DOC}/hugs.1 ${HUGS_DOC}/hugs.1.orig
- ${SED} -e "s#^\.ds LB .*#.ds LB ${PREFIX}/share/hugs#" \
+ ${SED} -e "s#Prelude\.hs#lib/&#" \
+ -e "s#^\.ds LB .*#.ds LB ${PREFIX}/share/hugs#" \
-e "s#^\.ds BN .*#.ds BN ${PREFIX}/bin#" \
- -e "s#Prelude\.hs#lib/&#" \
- < ${HUGS_DOC}/hugs.1.orig > ${HUGS_DOC}/hugs.1
- ${INSTALL_MAN} ${HUGS_DOC}/hugs.1 ${PREFIX}/man/man1
+ < ${HUGS_DOC}/hugs.1 > ${HUGS_DOC}/hugs.1.fix
+ ${INSTALL_MAN} ${HUGS_DOC}/hugs.1.fix ${PREFIX}/man/man1/${MAN1}
+ ${RM} ${HUGS_DOC}/hugs.1.fix
+ # fix owner/permissions
+ find ${PREFIX}/share/hugs -type d | xargs chmod 755
+ find ${PREFIX}/share/hugs -type f | xargs chmod ${SHAREMODE}
+ find ${PREFIX}/share/hugs | xargs chown ${SHAREOWN}.${SHAREGRP}
.if !defined(NOPORTDOCS)
${INSTALL_DIR} ${PREFIX}/share/doc/hugs
- ${INSTALL_DATA} ${HUGS_DOC}/README ${PREFIX}/share/doc/hugs
- ${INSTALL_DATA} ${HUGS_DOC}/*.html ${PREFIX}/share/doc/hugs
-.for DOC in manual-html haskore-html libs-html report library tutorial
- ${INSTALL_DIR} ${PREFIX}/share/doc/hugs/${DOC}
- ${INSTALL_DATA} ${HUGS_DOC}/${DOC}/* ${PREFIX}/share/doc/hugs/${DOC}
-.endfor
+ ${CP} -R ${HUGS_DOC}/* ${PREFIX}/share/doc/hugs
+ # fix owner/permissions
+ find ${PREFIX}/share/doc/hugs -type d | xargs chmod 755
+ find ${PREFIX}/share/doc/hugs -type f | xargs chmod ${SHAREMODE}
+ find ${PREFIX}/share/doc/hugs | xargs chown ${SHAREOWN}.${SHAREGRP}
.endif
.include <bsd.port.mk>