2005-10-29 17:17:05 +00:00
|
|
|
# New ports collection makefile for: pypanel
|
|
|
|
# Date created: 24 October 2005
|
|
|
|
# Whom: Florian Unglaub
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pypanel
|
|
|
|
PORTVERSION= 2.4
|
2008-03-25 22:44:48 +00:00
|
|
|
PORTREVISION= 4
|
2005-10-29 17:17:05 +00:00
|
|
|
CATEGORIES= deskutils
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
|
|
|
MASTER_SITE_SUBDIR= pypanel
|
|
|
|
DISTNAME= PyPanel-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= u0@rootofallevil.net
|
|
|
|
COMMENT= Desktop panel written in Python
|
|
|
|
|
|
|
|
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
|
2008-03-11 21:13:53 +00:00
|
|
|
Xft.2:${PORTSDIR}/x11-fonts/libXft
|
2005-10-29 17:17:05 +00:00
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/Xlib/X.py:${PORTSDIR}/x11-toolkits/py-xlib
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/Xlib/X.py:${PORTSDIR}/x11-toolkits/py-xlib
|
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
2008-03-11 21:13:53 +00:00
|
|
|
USE_EFL= imlib2
|
2007-07-30 09:42:28 +00:00
|
|
|
PYDISTUTILS_PKGNAME= PyPanel
|
2005-10-29 17:17:05 +00:00
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|/usr/bin/freetype-config|${LOCALBASE}/bin/freetype-config|; \
|
|
|
|
s|/usr/bin/imlib2-config|${LOCALBASE}/bin/imlib2-config|; \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
s|/usr/X11R6/include|${LOCALBASE}/include|; \
|
2005-10-29 17:17:05 +00:00
|
|
|
s|"COPYING", "README", ||' ${WRKSRC}/setup.py
|
|
|
|
@${REINPLACE_CMD} -e 's|sysconfig\.get_python_lib()|"${PREFIX}/share"|' \
|
|
|
|
${WRKSRC}/setup.py ${WRKSRC}/pypanel
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|/usr/lib/libImlib2.so.1|${LOCALBASE}/lib/libImlib2.so|' \
|
|
|
|
${WRKSRC}/setup.py ${WRKSRC}/ppmodule.c
|
|
|
|
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/pypanel
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share/imlib2|${LOCALBASE}/share/imlib2|' \
|
|
|
|
${WRKSRC}/pypanelrc
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|