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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sat Jan 18 19:59:56 2014 UTC (5 years, 9 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -2 lines
Stable for alpha, wrt bug #492040

(Portage version: 2.2.7/cvs/Linux x86_64, RepoMan options: --include-arches="alpha", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2014 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-r4.ebuild,v 1.9 2014/01/15 09:19:33 ago Exp $
4
5 EAPI="5"
6 PYTHON_DEPEND="python? 2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.* *-jython"
9 GNOME_ORG_MODULE="gamin"
10 GNOME_TARBALL_SUFFIX="bz2"
11
12 inherit autotools eutils flag-o-matic libtool python gnome.org multilib-minimal
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 # Fix possible server deadlock in ih_sub_cancel, upstream bug #667230
67 epatch "${FILESDIR}/${PN}-0.1.10-deadlock.patch"
68
69 # Drop DEPRECATED flags
70 sed -i -e 's:-DG_DISABLE_DEPRECATED:$(NULL):g' server/Makefile.am || die
71
72 # Build only shared version of Python module.
73 epatch "${FILESDIR}"/${PN}-0.1.10-disable_python_static_library.patch
74
75 # Python bindings are built/installed manually.
76 sed -e "/SUBDIRS += python/d" -i Makefile.am
77
78 sed -i \
79 -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
80 -e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \
81 configure.in || die #466962
82
83 # autoconf is required as the user-cflags patch modifies configure.in
84 # however, elibtoolize is also required, so when the above patch is
85 # removed, replace the following call with a call to elibtoolize
86 AT_M4DIR="${WORKDIR}" eautoreconf
87
88 use python && python_clean_py-compile_files
89 }
90
91 multilib_src_configure() {
92 ECONF_SOURCE="${S}" econf \
93 $(use_enable static-libs static) \
94 --disable-debug \
95 --disable-server \
96 $(use_enable kernel_linux inotify) \
97 $(use_enable debug debug-api) \
98 $(use_with python)
99 }
100
101 multilib_src_compile() {
102 default
103
104 if multilib_is_native_abi && use python; then
105 python_copy_sources python
106
107 building() {
108 emake \
109 PYTHON_INCLUDES="${EPREFIX}$(python_get_includedir)" \
110 PYTHON_SITE_PACKAGES="${EPREFIX}$(python_get_sitedir)" \
111 PYTHON_VERSION="$(python_get_version)"
112 }
113 S="${BUILD_DIR}" python_execute_function -s --source-dir python building
114 fi
115 }
116
117 multilib_src_install() {
118 emake DESTDIR="${D}" install
119
120 if multilib_is_native_abi && use python; then
121 installation() {
122 emake \
123 DESTDIR="${D}" \
124 PYTHON_SITE_PACKAGES="${EPREFIX}$(python_get_sitedir)" \
125 PYTHON_VERSION="$(python_get_version)" \
126 install
127 }
128 S="${BUILD_DIR}" python_execute_function -s --source-dir python installation
129
130 python_clean_installation_image
131 fi
132 }
133
134 multilib_src_instal_all() {
135 dodoc AUTHORS ChangeLog README TODO NEWS doc/*txt
136 dohtml doc/*
137
138 find "${D}" -name '*.la' -exec rm -f {} +
139 }
140
141 pkg_postinst() {
142 if use python; then
143 python_mod_optimize gamin.py
144 fi
145 }
146
147 pkg_postrm() {
148 if use python; then
149 python_mod_cleanup gamin.py
150 fi
151 }

  ViewVC Help
Powered by ViewVC 1.1.20