1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/net/heybuddy/Makefile
Antoine Brodin 3a1de82f03 Fix make fetch
With hat:	portmgr
2014-07-29 19:53:17 +00:00

65 lines
1.4 KiB
Makefile

# Created by: Beni Keller <navigium@grindcore.ch>
# $FreeBSD$
PORTNAME= heybuddy
PORTVERSION= 0.2.4
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://launchpad.net/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}/+download/ \
http://freebsd.grindcore.ch/distfiles/
MAINTAINER= ports@FreeBSD.org
COMMENT= Supposedly light, feature free identi.ca client
LICENSE= GPLv3
USES= tar:tgz
USE_PYTHON= yes
USE_GNOME= desktopfileutils pygtk2
DESKTOP_ENTRIES= "Heybuddy" \
"Light identi.ca client" \
"${PORTNAME}" \
"${PORTNAME}" \
"" \
false
NO_STAGE= yes
OPTIONS_DEFINE= NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
@${REINPLACE_CMD} \
-e 's|%%PREFIX%%|${PREFIX}|g' \
-e 's|%%DATADIR%%|${DATADIR}|g' \
${WRKSRC}/${PORTNAME}.py
@${MV} ${WRKSRC}/${PORTNAME}.py ${WRKDIR}
do-build:
${PYTHON_CMD} -mcompileall ${WRKSRC}
${PYTHON_CMD} -O -mcompileall ${WRKSRC}
do-install:
@${MKDIR} ${DATADIR}
cd ${WRKSRC} && ${INSTALL_DATA} README.txt *.py *.py[co] ${DATADIR}
cd ${WRKDIR} && ${INSTALL_SCRIPT} ${PORTNAME}.py ${PREFIX}/bin/${PORTNAME}
cd ${WRKSRC}/assets && ${INSTALL_DATA} icon64.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
@cd ${WRKSRC} && ${COPYTREE_SHARE} assets ${DATADIR}
.if ${PORT_OPTIONS:MNLS}
@cd ${WRKSRC}/locales && ${COPYTREE_SHARE} . ${PREFIX}/share/locale
.endif
post-install:
-@update-desktop-database
.include <bsd.port.mk>