Magellan Linux

Contents of /branches/R11-unstable/extras/pygobject/pygobject-2.28.6-r7.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32468 - (show annotations) (download)
Mon Apr 29 12:57:03 2019 UTC (5 years ago) by niro
File size: 1730 byte(s)
-release branches/R11-unstable
1 # $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
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 }
73
74 src_compile()
75 {
76 python2_src_compile --with-python=${MAGE_PYTHON2_EXEC} --disable-introspection || die
77 python3_src_compile --with-python=${MAGE_PYTHON3_EXEC} --disable-introspection || die
78 }
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 }