2013-02-25 03:16:30 +01:00
|
|
|
# Created by: Uffe Jakobsen <uffe@uffe.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= obkey
|
|
|
|
PORTVERSION= 1.0
|
2017-05-05 15:55:06 +02:00
|
|
|
PORTREVISION= 1
|
|
|
|
DISTVERSIONPREFIX= v
|
2013-02-25 03:16:30 +01:00
|
|
|
CATEGORIES= x11-wm python
|
2017-05-05 15:55:06 +02:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= nsf
|
2013-02-25 03:16:30 +01:00
|
|
|
|
2016-10-10 00:01:34 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-02-25 03:16:30 +01:00
|
|
|
COMMENT= Openbox hotkey editor, written in Python and PyGTK
|
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
|
2016-04-01 16:33:55 +02:00
|
|
|
RUN_DEPENDS= py27-gtk2>=2.14:x11-toolkits/py-gtk2
|
2013-02-25 03:16:30 +01:00
|
|
|
|
2017-11-30 16:50:30 +01:00
|
|
|
USES= desktop-file-utils gettext python:2.7
|
2014-10-19 20:16:15 +02:00
|
|
|
USE_PYTHON= distutils
|
2017-05-05 15:55:06 +02:00
|
|
|
NO_ARCH= yes
|
2014-03-15 19:29:16 +01:00
|
|
|
|
2013-02-25 03:16:30 +01:00
|
|
|
PORTDOCS= NEWS
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,python,env &,' \
|
|
|
|
${WRKSRC}/obkey ${WRKSRC}/obkey_classes.py
|
|
|
|
@${REINPLACE_CMD} -e '/config_prefix/s,/usr,${LOCALBASE},' \
|
|
|
|
${WRKSRC}/obkey_classes.py
|
|
|
|
|
|
|
|
post-install:
|
2014-03-15 19:29:16 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/misc/obkey.desktop ${STAGEDIR}${DESKTOPDIR}
|
2016-04-14 19:13:00 +02:00
|
|
|
|
|
|
|
post-install-DOCS-on:
|
2014-03-15 19:29:16 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}
|
2013-02-25 03:16:30 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|