aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/py-kde/Makefile
blob: b7eee55fd0e3876f393425526495a66e66b75e03 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:    PyKDE
# Date created:     Sun Oct 17 00:24:28 PDT 1999
# Whom:         adsharma@sharmas.dhs.org
#
# $FreeBSD$
#

PORTNAME=   kde
PORTVERSION=    3.11.3
CATEGORIES= x11-toolkits kde python
MASTER_SITES=   http://www.river-bank.demon.co.uk/download/PyKDE2/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   PyKDE-${PORTVERSION}
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX}

MAINTAINER= danny@ricin.com
COMMENT=    Python Bindings for KDE3

BUILD_DEPENDS=  pyuic:${PORTSDIR}/x11-toolkits/py-qt
RUN_DEPENDS=    ${BUILD_DEPENDS}

USE_PYTHON= yes
USE_KDELIBS_VER=3
USE_REINPLACE=  yes

PYQTVERSION=    3.13
EXAMPLESDIR=    ${PREFIX}/share/examples/${PKGBASE}

NO_FILTER_SHLIBS=   yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=     "Does not run on 4.x"
.endif

post-patch:
    @${REINPLACE_CMD} -e 's#/usr/bin/python#${PYTHON_CMD}#' ${WRKSRC}/postproc

do-configure:
    @( cd ${WRKSRC} && ${PYTHON_CMD} configure.py -c \
        -k ${LOCALBASE} \
        -v ${PREFIX}/share/sip \
        -d ${PYTHONPREFIX_SITELIBDIR} )

pre-install:
    @${REINPLACE_CMD} -e "s,${SETENV} python,${PYTHON_CMD}," \
        ${WRKSRC}/contrib/kdepyuic

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${EXAMPLESDIR}
    @( cd ${WRKSRC}/examples && ${TAR} -cf - . ) | \
        ( cd ${EXAMPLESDIR} && ${TAR} -xf - )
    @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${EXAMPLESDIR}
    @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${EXAMPLESDIR}
    @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif
    @${INSTALL_SCRIPT} ${WRKSRC}/contrib/kdepyuic ${PREFIX}/bin
    @${PYTHON_CMD} -c "import pykdeconfig, dcopexport"
    @${PYTHON_CMD} -O -c "import pykdeconfig, dcopexport"

.include <bsd.port.post.mk>
devel/electron6/files/ini-1.3.8&id=f09ee78053ea142673ee4ddbf2d95060fbd21c9c'>- Refactor FOX portsgahr2013-10-072-178/+23 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * - Update to 1.7.42gahr2013-09-195-5/+445 * Bump some PORTREVISIONs due to graphics/webp update to 0.3.1mm2013-09-101-0/+1 * - Update to 1.7.41gahr2013-08-293-14/+15 * - Update to 1.7.40gahr2013-07-253-3/+4 * - Fix build on amd64 < 9.0 by disabling assembly optimizationsgahr2013-05-151-0/+20 * - Fix PLISTgahr2013-05-141-0/+1 * - Update to 1.7.39gahr2013-05-132-3/+3 * - Update to 1.7.38gahr2013-03-283-10/+15 * This changes almost all the "gnomehack" only USE_GNOME cases to USES= pathfix.eadler2013-03-191-1/+1 * - Remove USE_GCC - builds fine with clanggahr2012-12-171-1/+0 * - Update to 1.7.37gahr2012-11-272-8/+4 * - Update to 1.7.36gahr2012-08-303-8/+8 * - Remove CONFLICTS between x11-toolkits/fox16 and x11-toolkits/fox17 bygahr2012-08-132-12/+23 * - Update to 1.7.35gahr2012-08-064-42/+20 * Switch from libglut to freeglut and retire libglut. Libglut hasn't beenkwm2012-08-051-1/+2 * - Unbreak on i386gahr2012-06-212-5/+10 * - unbreak on amd64 <9 by depending on GCC 4.4+gahr2012-06-202-7/+16 * - update png to 1.5.10dinoex2012-06-011-1/+2 * Mark BROKEN on i386: does not builderwin2012-05-311-0/+4 * - Update to 1.7.33gahr2012-05-022-5/+5 * - Update to 1.7.32gahr2012-01-064-22/+35 * - Update to 1.7.31gahr2012-01-032-4/+4 * Mark as broken on powerpc: fails to link.linimon2011-12-281-0/+3 * - Update to 1.7.30gahr2011-10-273-18/+3 * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-241-3/+2 * - Update to 1.7.29gahr2011-09-152-3/+3 * - Add the pthread library to the pkg-config "libs" optiongahr2011-08-051-0/+1 * - Update to 1.7.28gahr2011-08-053-3/+18 * - update to 1.7.27gahr2011-08-025-14/+31 * - Mark BROKEN on amd64 <9:pav2011-05-311-6/+3 * - Update to 1.7.26gahr2011-05-195-31/+10 * - Update to 1.7.25gahr2010-12-204-22/+24 * - Update to 1.7.23gahr2010-10-113-4/+5 * - Try to actually fix build on amd64gahr2010-09-281-2/+11 * - Quick & dirty hack to fix build on amd64, until someone familiargahr2010-09-271-0/+11 * - Update to 1.7.22gahr2010-09-274-15/+16 * - Fix typogahr2010-08-241-1/+1