mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
4e134ef931
PR: 158443 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
64 lines
1.7 KiB
Makefile
64 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
|
|
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>
|