summaryrefslogtreecommitdiff
path: root/packages/python/python-pyqwt_3.10.bb
blob: 8677ed05ea215c4cc9db956f463fd64452ec6f80 (plain)
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
64
DESCRIPTION = "Python QWT Bindings, QtE edition"
HOMEPAGE = "http://www.vanille.de/projects/python.spy"
SECTION = "devel/python"
PRIORITY = "optional"
MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
LICENSE = "GPL"
RDEPENDS = "python-core python-sip python-pyqt (>=${PV}) python-numeric qwt"
DEPENDS = "virtual/libqte2 python-numeric python-pyqt qwt"
SRCNAME = "pyqwt"
PR = "ml3"

SRC_URI = "http://www.vanille.de/mirror/PyQwt-20040118.tar.gz \
           file://qt2.x-compat.patch;patch=1 \
           file://features"
S = "${WORKDIR}/PyQwt-20040118"

inherit qmake sip distutils-base

QMAKE_PROFILES = "pyqwt.pro"
EXTRA_SIPTAGS = "-tWS_QWS -tQtPE_1_6_0 -tQt_2_3_1"
SIP_MODULES = "qwt"
SIP_FEATURES = "${WORKDIR}/features"   
EXTRA_OEMAKE = " MAKEFLAGS= "

EXTRA_QMAKEVARS_POST += "CONFIG=qt CONFIG+=warn_on CONFIG+=release \
                         TARGET=qwt DESTDIR= VERSION=1.0.0 \
                         DEFINES=SIP_MAKE_DLL DEFINES+=SIP_QT_SUPPORT DEFINES+=HAS_NUMERIC DEFINES+=QWS \
                         INCLUDEPATH+=../numpy \
                         INCLUDEPATH+=${STAGING_INCDIR}/${PYTHON_DIR} \
                         INCLUDEPATH+=${STAGING_INCDIR} \
                         LIBS+=-L${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages \
                         LIBS+=-L${QTDIR}/lib LIBS+=-lqte LIBS+=-lqpe "

do_generate_prepend() {
    echo -e "TEMPLATE=subdirs\nSUBDIRS=qwt\n" >pyqwt.pro
    
    echo "%Makefile qwt.pro.in" >>sip/qwtmod.sip
    echo "TEMPLATE=lib" >>sip/qwtmod.sip
    echo 'SOURCES = $B' >>sip/qwtmod.sip
    echo 'HEADERS = $H' >>sip/qwtmod.sip
    echo "%End" >>sip/qwtmod.sip

    mkdir -p sip/qwt/
    mv sip/*.* sip/qwt/
}

do_stage() {
    install -d ${STAGING_SIPDIR}/qt/
    for module in ${SIP_MODULES}
    do
        install -m 0644 ${S}/sip/${module}/*.sip ${STAGING_SIPDIR}/qt/
        install -m 0755 ${module}/lib${module}.so ${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages/${module}.so
    done
}

do_install() {
    install -d ${D}${libdir}/${PYTHON_DIR}/site-packages/
    for module in ${SIP_MODULES}
    do
        install -m 0755 ${module}/lib${module}.so ${D}${libdir}/${PYTHON_DIR}/site-packages/${module}.so
    done
}

FILES_${PN} = "${libdir}/${PYTHON_DIR}/site-packages"
ed.bkbits.net/openembedded into mnz66.mn-solutions.de:/usr/src/oe/p 2005/02/23 11:33:31+01:00 mn-solutions.de!schurig fix installation stage 2005/02/23 09:27:44+00:00 (none)!xora New upstream version of kismet, fixes for compilation problems, and change of maintainer with Brunos permission 2005/02/23 01:11:25+01:00 uni-frankfurt.de!mickeyl add a sharprom-compatible distro configuration. relies on an external 2.95.3 toolchain (for now... until someone adds it to OE) and needs further work. It's a start for someone interested though. 2005/02/23 01:09:23+01:00 uni-frankfurt.de!mickeyl bump cvsdate on oz-3.5.3 2005/02/22 17:37:44-06:00 ti.com!kergoth Fix the quilt PATCHCMD to stop rampantly chmod'ing, which made the CVS directories not executable, thereby screwing up the ability to rm -rf tmp. Thanks to holger freyther for pointing it out. BKrev: 421c7b62hBWfitoVhb3IO3ZT5nS71A 2005-02-22Merge bk://oe-devel.bkbits.net/openembeddednslu2-linux.adm@bkbits.net1 into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/02/21 17:35:27-06:00 ti.com!kergoth Kill the ipkg paths patch, since its busted. 2005/02/21 17:33:13-06:00 ti.com!kergoth Fix sbindir in native.bbclass and cross.bbclass. Thanks to Jordan Crouse for reporting. 2005/02/21 17:13:19-06:00 ti.com!kergoth Add the paths patch to ipkg which fixes it to no longer hardcode the '/usr/lib/ipkg' path, which I forgot to check in from the previous commit. 2005/02/21 17:09:46-06:00 ti.com!kergoth Merge oe-devel@oe-devel.bkbits.net:openembedded into odin.sc.ti.com:/home/kergoth/code/user/oe/openembedded 2005/02/21 17:09:03-06:00 ti.com!kergoth Run a sed script against our packages to fix some hardcoded target path references. As always when I do things like this, if packages you maintain were touched by this, please do a sanity check to ensure the sed script didn't run wild. 2005/02/21 15:49:47-06:00 ti.com!kergoth Use a HOTPLUG variable to manage which hotplug you prefer, to ensure that hotplug is still included in task-bootstrap even if you dont set DISTRO. BKrev: 421b2b63X5eoMcSrC7pVcptXK-iFKg 2005-02-21Merge bk://oe-devel.bkbits.net/openembeddednslu2-linux.adm@bkbits.net3 into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/02/21 10:26:46-07:00 amd.com!jcrouse Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into forsteri.amd.com:/users/jcrouse/bk/openembedded 2005/02/21 10:26:31-07:00 amd.com!jcrouse add nautilus and nautilus-cd-burner 2005/02/21 10:25:14-07:00 amd.com!jcrouse add intercom 2005/02/21 10:24:55-07:00 amd.com!jcrouse add grip 2005/02/21 10:24:22-07:00 amd.com!jcrouse add gftp 2005/02/21 10:23:39-07:00 amd.com!jcrouse add gcalctool 2005/02/21 10:22:39-07:00 amd.com!jcrouse add file-roller 2005/02/21 10:22:01-07:00 amd.com!jcrouse add eel 2005/02/21 10:21:02-07:00 amd.com!jcrouse Add cdparanoia 2005/02/21 18:20:10+01:00 dyndns.org!reenoo jamvm: update to 1.2.4. demote classpath to RRECOMMENDS. 2005/02/21 17:40:53+01:00 dyndns.org!reenoo sablevm(-classpath): update to 1.1.9. demote sablevm-classpath to RRECOMMENDS since sablevm now works with a pristine gnu classpath as well. BKrev: 421a1d0aPKENvVhuO0zqpVdLckAnaw 2005-01-16Merge bk://oe-devel.bkbits.net/openembeddednslu2-linux.adm@bkbits.net3 into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/01/16 14:14:33+01:00 dyndns.org!reenoo Merge oe-devel@oe-devel.bkbits.net:openembedded into sugarcube.dyndns.org:/home2/oe/bakery/openembedded 2005/01/16 14:14:17+01:00 dyndns.org!reenoo sablevm(-classpath): update to 1.1.8 BKrev: 41ea6eb8QJbybfBxRVv5hDg3O4VLEg 2004-12-09Merge oe-devel@oe-devel.bkbits.net:openembeddedChris Larson3 into hyperion.kergoth.com:/home/kergoth/code/openembedded 2004/12/09 03:39:39-06:00 kergoth.com!kergoth Break people's builds again.. this time moving the packages into a packages/ subdir to clean things up a bit. BKrev: 41b81f3dvlp3rU7_8MUXLcI8LDdDoA