/[gentoo-x86]/dev-libs/libgamin/libgamin-0.1.10-r2.ebuild
Gentoo

Contents of /dev-libs/libgamin/libgamin-0.1.10-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.19 - (show annotations) (download)
Tue Dec 2 10:28:45 2014 UTC (4 years, 10 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.18: +1 -1 lines
FILE REMOVED
Drop old

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2012 Gentoo Foundation
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.18 2012/04/30 14:29:54 grobian Exp $
4
5 EAPI="3"
6
7 PYTHON_DEPEND="python? 2"
8 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="3.* *-jython"
10 GNOME_ORG_MODULE="gamin"
11
12 inherit autotools eutils flag-o-matic libtool python gnome.org
13
14 DESCRIPTION="Library providing the FAM File Alteration Monitor API"
15 HOMEPAGE="http://www.gnome.org/~veillard/gamin/"
16 SRC_URI="${SRC_URI}
17 mirror://gentoo/gamin-0.1.9-freebsd.patch.bz2
18 http://dev.gentoo.org/~grobian/patches/libgamin-0.1.10-opensolaris.patch.bz2
19 http://pkgconfig.freedesktop.org/releases/pkg-config-0.26.tar.gz" # pkg.m4 for eautoreconf
20
21 LICENSE="LGPL-2"
22 SLOT="0"
23 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
24 IUSE="debug kernel_linux python static-libs"
25
26 RESTRICT="test" # needs gam-server
27
28 RDEPEND="!app-admin/fam
29 !<app-admin/gamin-0.1.10"
30 DEPEND="${RDEPEND}"
31
32 pkg_setup() {
33 if use python; then
34 python_pkg_setup
35 fi
36 }
37
38 src_prepare() {
39 mv -vf "${WORKDIR}"/pkg-config-*/pkg.m4 "${WORKDIR}"/ || die
40
41 # Fix QA warnings, bug #257281, upstream #466791
42 epatch "${FILESDIR}"/${PN}-0.1.10-compilewarnings.patch
43
44 if [[ ${CHOST} != *-solaris* ]] ; then
45 # Fix compile warnings; bug #188923
46 epatch "${DISTDIR}"/gamin-0.1.9-freebsd.patch.bz2
47 else
48 # (Open)Solaris necessary patches (changes configure.in), unfortunately
49 # conflicts with freebsd patch and breaks some linux installs so it must
50 # only be applied if on solaris.
51 epatch "${DISTDIR}"/${P}-opensolaris.patch.bz2
52 fi
53
54 # Fix collision problem due to intermediate library, upstream bug #530635
55 epatch "${FILESDIR}"/${PN}-0.1.10-noinst-lib.patch
56
57 # Fix compilation with latest glib, bug #382783
58 epatch "${FILESDIR}/${PN}-0.1.10-G_CONST_RETURN-removal.patch"
59
60 # Fix crosscompilation issues, bug #267604
61 epatch "${FILESDIR}/${PN}-0.1.10-crosscompile-fix.patch"
62
63 # Enable linux specific features on armel, upstream bug #588338
64 epatch "${FILESDIR}/${P}-armel-features.patch"
65
66 # Drop DEPRECATED flags
67 sed -i -e 's:-DG_DISABLE_DEPRECATED:$(NULL):g' server/Makefile.am || die
68
69 # Build only shared version of Python module.
70 epatch "${FILESDIR}"/${PN}-0.1.10-disable_python_static_library.patch
71
72 # Python bindings are built/installed manually.
73 sed -e "/SUBDIRS += python/d" -i Makefile.am
74
75 # autoconf is required as the user-cflags patch modifies configure.in
76 # however, elibtoolize is also required, so when the above patch is
77 # removed, replace the following call with a call to elibtoolize
78 AT_M4DIR="${WORKDIR}" eautoreconf
79
80 # disable pyc compiling
81 >py-compile
82 }
83
84 src_configure() {
85 econf \
86 $(use_enable static-libs static) \
87 --disable-debug \
88 --disable-server \
89 $(use_enable kernel_linux inotify) \
90 $(use_enable debug debug-api) \
91 $(use_with python)
92 }
93
94 src_compile() {
95 default
96
97 if use python; then
98 python_copy_sources python
99
100 building() {
101 emake \
102 PYTHON_INCLUDES="${EPREFIX}$(python_get_includedir)" \
103 PYTHON_SITE_PACKAGES="${EPREFIX}$(python_get_sitedir)" \
104 PYTHON_VERSION="$(python_get_version)"
105 }
106 python_execute_function -s --source-dir python building
107 fi
108 }
109
110 src_install() {
111 emake DESTDIR="${D}" install || die
112
113 if use python; then
114 installation() {
115 emake \
116 DESTDIR="${D}" \
117 PYTHON_SITE_PACKAGES="${EPREFIX}$(python_get_sitedir)" \
118 PYTHON_VERSION="$(python_get_version)" \
119 install
120 }
121 python_execute_function -s --source-dir python installation
122
123 python_clean_installation_image
124 fi
125
126 dodoc AUTHORS ChangeLog README TODO NEWS doc/*txt || die
127 dohtml doc/* || die
128
129 find "${D}" -name '*.la' -exec rm -f {} +
130 }
131
132 pkg_postinst() {
133 if use python; then
134 python_mod_optimize gamin.py
135 fi
136 }
137
138 pkg_postrm() {
139 if use python; then
140 python_mod_cleanup gamin.py
141 fi
142 }

  ViewVC Help
Powered by ViewVC 1.1.20