1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/security/gcipher/Makefile
2012-06-01 05:26:28 +00:00

65 lines
1.7 KiB
Makefile

# New ports collection makefile for: gcipher
# Date created: 25 June 2003
# Whom: Shannon -jj Behrens <jjinux@yahoo.com>
#
# $FreeBSD$
#
PORTNAME= gcipher
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= security gnome
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= A simple encryption tool
LICENSE= BSD
USE_GNOME= pygnome2
USE_PYTHON= yes
MAN1= gcipher.1
LICENSE_FILES= ${WRKSRC}/LICENSE
post-patch:
@${REINPLACE_CMD} -e \
'/^VERSION/s|=.*|= "${PORTVERSION}"|g ; \
/^GLADEDIR/s|=.*|= "${DATADIR}/lib"|g' ${WRKSRC}/src/Const.py
@${REINPLACE_CMD} -e \
's|/usr/bin/python|${SETENV} python|g ; \
s|^# sys.path.append|sys.path.append|g ; \
s|/usr/share/gcipher/lib|${DATADIR}/lib|' ${WRKSRC}/src/gcipher
do-build:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/src
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/src
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/gcipher ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/gcipher.1 ${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/src/gcipher.desktop ${PREFIX}/share/applications
@${MKDIR} ${DATADIR}/lib
@(cd ${WRKSRC}/src && \
${FIND} . -name '*.glade' \
-o -name '*.gladep' \
-o -name '*.py' \
-o -name '*.pyc' \
-o -name '*.pyo' | \
${CPIO} -pdm -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}/lib)
@${MKDIR} ${DATADIR}/plugins
@(cd ${WRKSRC}/plugins && \
${FIND} . -name '*.glade' \
-o -name '*.gladep' \
-o -name '*.py' | \
${CPIO} -pdm -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}/plugins)
@${FIND} ${DATADIR} -type d | ${XARGS} ${CHMOD} a+rx
@${FIND} ${DATADIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC} && \
${INSTALL_DATA} CONTRIB README ${DOCSDIR})
.endif
.include <bsd.port.mk>