aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/obmenu/Makefile
blob: e9d2e91411ccf4dc34757a6a5f2c28db75da4495 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Created by: Doug Barton <dougb@FreeBSD.org>
# $FreeBSD$

PORTNAME=   obmenu
PORTVERSION=    1.0
PORTREVISION=   8
CATEGORIES= x11-wm
MASTER_SITES=   SF

MAINTAINER= ports@FreeBSD.org
COMMENT=    Menu manager for Openbox supporting both static and pipe menus

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       python:2.7 shebangfix
USE_GNOME=  pygtk2
USE_PYTHON= distutils
PYDISTUTILS_PKGNAME=    obMenu
SHEBANG_FILES=  obmenu obxml.py pipes/obm-xdg
NO_ARCH=    yes

SUB_FILES=  pkg-message

PORTDOCS=   README

DESKTOP_ENTRIES="Obmenu" "Menu manager for Openbox" ${PORTNAME} \
        "${PORTNAME}" "Settings;" ""

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e '/itm.nodeName.lower()/s|execute|command|; \
        /self.dom.createElement("execute")/s|execute|command|; \
        /xml.dom.minidom.Element("execute")/s|execute|command|; \
        /i.nodeName == "execute"/s|execute|command|' \
        ${WRKSRC}/obxml.py
    @${REINPLACE_CMD} -e '/import/{p;s|.*|import signal|;}; \
        /os.kill/s|12)|signal.SIGUSR2)|' \
        ${WRKSRC}/obmenu

post-install:
    ${LN} -sf ${DATADIR}/mnu48.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>