Line
Link Here
|
0 |
-- libgamin-0.1.10-r2.ebuild |
0 |
++ libgamin-0.1.10-r2.ebuild |
Lines 1-8
Link Here
|
1 |
# Copyright 1999-2009 Gentoo Foundation |
1 |
# Copyright 1999-2010 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgamin/libgamin-0.1.10-r2.ebuild,v 1.11 2009/09/25 10:51:18 flameeyes Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libgamin/libgamin-0.1.10-r2.ebuild,v 1.11 2009/09/25 10:51:18 flameeyes Exp $ |
4 |
|
4 |
|
5 |
EAPI="2" |
5 |
EAPI="2" |
|
|
6 |
PYTHON_DEPEND="python? 2" |
7 |
SUPPORT_PYTHON_ABIS="1" |
8 |
RESTRICT_PYTHON_ABIS="3.*" |
6 |
|
9 |
|
7 |
inherit autotools eutils flag-o-matic libtool python |
10 |
inherit autotools eutils flag-o-matic libtool python |
8 |
|
11 |
|
Lines 21-28
Link Here
|
21 |
|
24 |
|
22 |
RESTRICT="test" # need gam-server |
25 |
RESTRICT="test" # need gam-server |
23 |
|
26 |
|
24 |
RDEPEND="python? ( virtual/python ) |
27 |
RDEPEND="!app-admin/fam |
25 |
!app-admin/fam |
|
|
26 |
!<app-admin/gamin-0.1.10" |
28 |
!<app-admin/gamin-0.1.10" |
27 |
|
29 |
|
28 |
DEPEND="${RDEPEND} |
30 |
DEPEND="${RDEPEND} |
Lines 30-35
Link Here
|
30 |
|
32 |
|
31 |
S="${WORKDIR}/${MY_P}" |
33 |
S="${WORKDIR}/${MY_P}" |
32 |
|
34 |
|
|
|
35 |
pkg_setup() { |
36 |
if use python; then |
37 |
python_pkg_setup |
38 |
fi |
39 |
} |
40 |
|
33 |
src_prepare() { |
41 |
src_prepare() { |
34 |
# Fix QA warnings, bug #257281, upstream #466791 |
42 |
# Fix QA warnings, bug #257281, upstream #466791 |
35 |
epatch "${FILESDIR}/${P}-compilewarnings.patch" |
43 |
epatch "${FILESDIR}/${P}-compilewarnings.patch" |
Lines 40-45
Link Here
|
40 |
# Fix collision problem due to intermediate library, upstream bug #530635 |
48 |
# Fix collision problem due to intermediate library, upstream bug #530635 |
41 |
epatch "${FILESDIR}/${P}-noinst-lib.patch" |
49 |
epatch "${FILESDIR}/${P}-noinst-lib.patch" |
42 |
|
50 |
|
|
|
51 |
# Build only shared version of Python module. |
52 |
epatch "${FILESDIR}/${P}-disable_python_static_library.patch" |
53 |
|
54 |
# Python bindings are built/installed manually. |
55 |
sed -e "/SUBDIRS += python/d" -i Makefile.am |
56 |
|
43 |
# autoconf is required as the user-cflags patch modifies configure.in |
57 |
# autoconf is required as the user-cflags patch modifies configure.in |
44 |
# however, elibtoolize is also required, so when the above patch is |
58 |
# however, elibtoolize is also required, so when the above patch is |
45 |
# removed, replace the following call with a call to elibtoolize |
59 |
# removed, replace the following call with a call to elibtoolize |
Lines 58-77
Link Here
|
58 |
$(use_with python) |
72 |
$(use_with python) |
59 |
} |
73 |
} |
60 |
|
74 |
|
|
|
75 |
src_compile() { |
76 |
default |
77 |
|
78 |
if use python; then |
79 |
python_copy_sources python |
80 |
|
81 |
building() { |
82 |
emake \ |
83 |
PYTHON_INCLUDES="$(python_get_includedir)" \ |
84 |
PYTHON_SITE_PACKAGES="$(python_get_sitedir)" \ |
85 |
PYTHON_VERSION="$(python_get_version)" |
86 |
} |
87 |
python_execute_function -s --source-dir python building |
88 |
fi |
89 |
} |
90 |
|
61 |
src_install() { |
91 |
src_install() { |
62 |
emake DESTDIR="${D}" install || die "installation failed" |
92 |
emake DESTDIR="${D}" install || die "installation failed" |
63 |
|
93 |
|
|
|
94 |
if use python; then |
95 |
installation() { |
96 |
emake \ |
97 |
DESTDIR="${D}" \ |
98 |
PYTHON_SITE_PACKAGES="$(python_get_sitedir)" \ |
99 |
PYTHON_VERSION="$(python_get_version)" \ |
100 |
install |
101 |
} |
102 |
python_execute_function -s --source-dir python installation |
103 |
|
104 |
python_clean_installation_image |
105 |
fi |
106 |
|
64 |
dodoc AUTHORS ChangeLog README TODO NEWS doc/*txt || die "dodoc failed" |
107 |
dodoc AUTHORS ChangeLog README TODO NEWS doc/*txt || die "dodoc failed" |
65 |
dohtml doc/* || die "dohtml failed" |
108 |
dohtml doc/* || die "dohtml failed" |
66 |
} |
109 |
} |
67 |
|
110 |
|
68 |
pkg_postinst() { |
111 |
pkg_postinst() { |
69 |
if use python; then |
112 |
if use python; then |
70 |
python_version |
113 |
python_mod_optimize gamin.py |
71 |
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages |
|
|
72 |
fi |
114 |
fi |
73 |
} |
115 |
} |
74 |
|
116 |
|
75 |
pkg_postrm() { |
117 |
pkg_postrm() { |
76 |
python_mod_cleanup /usr/$(get_libdir)/python*/site-packages |
118 |
if use python; then |
|
|
119 |
python_mod_cleanup gamin.py |
120 |
fi |
77 |
} |
121 |
} |