Annotation of /trunk/extras/pygobject/pygobject-2.28.6-r7.smage2
Parent Directory | Revision Log
Revision 30158 -
(hide annotations)
(download)
Mon Oct 30 12:53:51 2017 UTC (6 years, 11 months ago) by niro
File size: 1730 byte(s)
Mon Oct 30 12:53:51 2017 UTC (6 years, 11 months ago) by niro
File size: 1730 byte(s)
-disabled gobject-introspection
1 | niro | 30155 | # $Id$ |
2 | |||
3 | PNAME="pygobject" | ||
4 | PVER="2.28.6" | ||
5 | PBUILD="r7" | ||
6 | |||
7 | SPLIT_PACKAGES="python2-gobject python3-gobject pygobject" | ||
8 | |||
9 | PCAT="dev-python" | ||
10 | HOMEPAGE="http://www.pygtk.org/" | ||
11 | |||
12 | PYTHON2_DEPEND=">= dev-lang/python-2.7 | ||
13 | >= dev-python/python2-cairo-1.13" | ||
14 | |||
15 | PYTHON3_DEPEND=">= dev-lang/python3-3.6 | ||
16 | >= dev-python/python3-cairo-1.13" | ||
17 | |||
18 | COMMON_DEPEND=">= dev-libs/libffi-3.2 | ||
19 | >= dev-libs/glib2-2.54" | ||
20 | |||
21 | SDEPEND="${PYTHON2_DEPEND} | ||
22 | ${PYTHON3_DEPEND} | ||
23 | ${COMMON_DEPEND} | ||
24 | >= dev-util/pkgconfig-0.25" | ||
25 | |||
26 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
27 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
28 | |||
29 | sminclude python2 python3 | ||
30 | msetfeature "!check" | ||
31 | |||
32 | SRC_URI=( | ||
33 | gnome://${PNAME}/${PVER%.*}/${SRCFILE} | ||
34 | mirror://${PNAME}/${SRCFILE} | ||
35 | ) | ||
36 | |||
37 | UP2DATE="updatecmd_gnome ${PNAME}" | ||
38 | |||
39 | split_info_python2-gobject2() | ||
40 | { | ||
41 | DESCRIPTION="Python2 glib object library." | ||
42 | DEPEND="${PYTHON2_DEPEND} | ||
43 | ${COMMON_DEPEND}" | ||
44 | } | ||
45 | |||
46 | split_info_python3-gobject() | ||
47 | { | ||
48 | DESCRIPTION="Python3 glib object library." | ||
49 | DEPEND="${PYTHON2_DEPEND} | ||
50 | ${COMMON_DEPEND}" | ||
51 | } | ||
52 | |||
53 | split_info_pygobject() | ||
54 | { | ||
55 | PVER="9999" | ||
56 | PKGTYPE="virtual" | ||
57 | |||
58 | DESCRIPTION="Transitional package for python2-gobject." | ||
59 | HOMEPAGE="http://www.magellan-linux.de/" | ||
60 | |||
61 | DEPEND=">= dev-python/python2-gobject-1" | ||
62 | } | ||
63 | |||
64 | src_prepare() | ||
65 | { | ||
66 | python2_src_prepare || die | ||
67 | python3_src_prepare || die | ||
68 | niro | 30157 | |
69 | # enforce make install method | ||
70 | rm ${MAGE_PYTHON2_SRCSUBDIR}/$(basename ${SRCDIR})/setup.py || die | ||
71 | rm ${MAGE_PYTHON3_SRCSUBDIR}/$(basename ${SRCDIR})/setup.py || die | ||
72 | niro | 30155 | } |
73 | |||
74 | src_compile() | ||
75 | { | ||
76 | niro | 30158 | python2_src_compile --with-python=${MAGE_PYTHON2_EXEC} --disable-introspection || die |
77 | python3_src_compile --with-python=${MAGE_PYTHON3_EXEC} --disable-introspection || die | ||
78 | niro | 30155 | } |
79 | |||
80 | src_install_python2-gobject() | ||
81 | { | ||
82 | python2_src_install || die | ||
83 | } | ||
84 | |||
85 | src_install_python3-gobject() | ||
86 | { | ||
87 | python3_src_install || die | ||
88 | } |