1 # New ports collection makefile for: Metalink editor
2 # Date created: Sun 10 Aug 2008 10:50:59 UTC
3 # Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
5 # $FreeBSD: ports/misc/metalink-editor/Makefile,v 1.9 2013/01/23 15:05:36 svnexp Exp $
12 MASTER_SITES= SF/${PORTNAME}s/Metalink%20Editor/${PORTVERSION}
13 PKGNAMESUFFIX?= -editor
14 DISTNAME= ${PORTNAME}editor-${PORTVERSION}
16 MAINTAINER= lioux@FreeBSD.org
17 COMMENT= GUI editor to create and edit metalinks
20 LICENSE_FILE= ${WRKDIR}/license.txt
24 DOS2UNIX_REGEX= .*\.txt
28 PYDISTUTILS_EGGINFO= metalink_editor-${PORTVERSION}-py${PYTHON_VER}.egg-info
32 DATADIR= ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}
34 DESKTOP_ENTRIES= "Metalink editor" \
35 "GUI editor to create and edit metalinks" \
36 "${DATADIR}/metalink.png" \
37 "metalink_editor.py" \
38 "Network;FileTransfer;" \
42 # Documents to install
52 # Create a package to avoid namespace pollution
53 @${MKDIR} ${WRKSRC}/Metalink_editor
54 @${TOUCH} ${WRKSRC}/Metalink_editor/__init__.py
55 @${MV} ${WRKSRC}/metalink.py ${WRKSRC}/Metalink_editor/
58 # Correct location of image files
59 @${REINPLACE_CMD} -E \
60 -e 's|%%DATADIR%%|${DATADIR}|' \
61 ${WRKSRC}/metalink_editor.py
64 # Prepare new setup.py
66 -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
67 -e 's|%%VERSION%%|${PORTVERSION}|' \
68 ${FILESDIR}/setup.py \
69 > ${WRKSRC}/${PYSETUP}
75 .for file in ${DOC_FILES}
76 @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
79 # fix installation permissions for restritive umask(1)
82 ${PYTHONPREFIX_SITELIBDIR}/Metalink_editor \
84 ${CHMOD} ${SHAREMODE} {} \;
86 .include <bsd.port.mk>