2013-04-29 20:03:38 +00:00
|
|
|
# Created by: Cyrille Lefevre <clefevre@citeweb.net>
|
2000-10-14 02:03:46 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2013-12-28 21:33:14 +00:00
|
|
|
PORTNAME= gcal
|
2017-05-11 10:26:38 +00:00
|
|
|
PORTVERSION= 4.1
|
2018-11-10 18:12:57 +00:00
|
|
|
PORTREVISION= 1
|
2013-12-28 21:33:14 +00:00
|
|
|
CATEGORIES= deskutils
|
|
|
|
MASTER_SITES= GNU
|
2000-10-14 02:03:46 +00:00
|
|
|
|
2019-11-04 21:21:03 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2017-05-11 10:26:38 +00:00
|
|
|
COMMENT= GNU Gregorian calendar program
|
|
|
|
|
|
|
|
LICENSE= GPLv3+
|
2001-09-11 12:17:27 +00:00
|
|
|
|
2004-03-10 15:08:55 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2017-07-28 21:45:20 +00:00
|
|
|
CONFIGURE_ENV= MAKEINFO="${MAKEINFO} --no-split"
|
2014-06-25 16:14:01 +00:00
|
|
|
USES= charsetfix shebangfix makeinfo tar:xz
|
2013-12-28 21:33:14 +00:00
|
|
|
SHEBANG_FILES= misc/gcalltx/gcalltxp.in misc/gcalltx/gcalltx.pl
|
2001-09-11 12:17:27 +00:00
|
|
|
|
2004-03-10 15:08:55 +00:00
|
|
|
INFO= gcal
|
2000-10-14 02:03:46 +00:00
|
|
|
|
2014-02-21 13:36:03 +00:00
|
|
|
OPTIONS_DEFINE= NLS
|
2015-06-05 16:13:20 +00:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
2010-06-03 17:54:46 +00:00
|
|
|
|
|
|
|
GCAL_SCRIPTS= daily/daily ddiff/ddiff ddiff/ddiffdrv dst/dst gcalltx/gcalltx \
|
|
|
|
gcalltx/gcalltxp moon/moon mrms/mrms srss/srss wloc/wlocdrv
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.for p in ${GCAL_SCRIPTS}
|
|
|
|
@${REINPLACE_CMD} -e '/^ThisGcal=/s:=.*:=${PREFIX}/bin/gcal:' \
|
|
|
|
-e '/^packagedatamiscdir=/s:=.*:=${DATADIR}/misc/${p:H}:' \
|
|
|
|
${WRKSRC}/misc/${p}.in
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${TAR} -cf - -C ${WRKSRC} --exclude '*.in' --exclude '*.in.bak' \
|
2013-12-28 21:33:14 +00:00
|
|
|
--exclude '*.alias' misc | \
|
|
|
|
${TAR} -xpf - -C ${STAGEDIR}${DATADIR}
|
2010-06-03 17:54:46 +00:00
|
|
|
.for p in ${GCAL_SCRIPTS}
|
2013-12-28 21:33:14 +00:00
|
|
|
@${CHMOD} +x ${STAGEDIR}${DATADIR}/misc/${p}
|
2017-05-11 10:26:38 +00:00
|
|
|
@${LN} -s ../${DATADIR_REL}/misc/${p} ${STAGEDIR}${PREFIX}/bin/gcal-${p:T}
|
2010-06-03 17:54:46 +00:00
|
|
|
.endfor
|
2001-09-11 12:17:27 +00:00
|
|
|
|
2000-10-14 02:03:46 +00:00
|
|
|
.include <bsd.port.mk>
|