1 |
commit: 1cea7541f807c4f7c5014ec8b1aa88e865150ed7 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 14 19:23:04 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 14 19:23:04 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cea7541 |
7 |
|
8 |
media-libs/libsndfile: Add live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.11, Repoman-2.3.3 |
11 |
|
12 |
media-libs/libsndfile/libsndfile-9999.ebuild | 71 ++++++++++++++++++++++++++++ |
13 |
1 file changed, 71 insertions(+) |
14 |
|
15 |
diff --git a/media-libs/libsndfile/libsndfile-9999.ebuild b/media-libs/libsndfile/libsndfile-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..eb28af81fd5 |
18 |
--- /dev/null |
19 |
+++ b/media-libs/libsndfile/libsndfile-9999.ebuild |
20 |
@@ -0,0 +1,71 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy{,3} ) |
27 |
+ |
28 |
+inherit python-any-r1 multilib-minimal |
29 |
+ |
30 |
+DESCRIPTION="A C library for reading and writing files containing sampled sound" |
31 |
+HOMEPAGE="http://www.mega-nerd.com/libsndfile" |
32 |
+ |
33 |
+if [[ ${PV} == *9999 ]]; then |
34 |
+ inherit autotools git-r3 |
35 |
+ EGIT_REPO_URI="https://github.com/erikd/libsndfile.git" |
36 |
+ |
37 |
+ DEPEND=" |
38 |
+ ${PYTHON_DEPS} |
39 |
+ sys-devel/autogen" |
40 |
+else |
41 |
+ SRC_URI="http://www.mega-nerd.com/libsndfile/files/${P}.tar.gz" |
42 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
43 |
+fi |
44 |
+ |
45 |
+LICENSE="LGPL-2.1" |
46 |
+SLOT="0" |
47 |
+IUSE="alsa minimal sqlite static-libs test" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ !minimal? ( |
51 |
+ >=media-libs/flac-1.2.1-r5[${MULTILIB_USEDEP}] |
52 |
+ >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
53 |
+ >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
54 |
+ ) |
55 |
+ alsa? ( media-libs/alsa-lib ) |
56 |
+ sqlite? ( >=dev-db/sqlite-3.2 )" |
57 |
+DEPEND=" |
58 |
+ ${DEPEND} |
59 |
+ ${RDEPEND} |
60 |
+ virtual/pkgconfig |
61 |
+ test? ( ${PYTHON_DEPS} )" |
62 |
+ |
63 |
+pkg_setup() { |
64 |
+ if use test || [[ ${PV} == *9999 ]]; then |
65 |
+ python-any-r1_pkg_setup |
66 |
+ fi |
67 |
+} |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ default |
71 |
+ |
72 |
+ [[ ${PV} == *9999 ]] && eautoreconf |
73 |
+} |
74 |
+ |
75 |
+multilib_src_configure() { |
76 |
+ ECONF_SOURCE="${S}" econf \ |
77 |
+ --disable-octave \ |
78 |
+ $(use_enable static-libs static) \ |
79 |
+ $(use_enable !minimal external-libs) \ |
80 |
+ $(multilib_native_enable full-suite) \ |
81 |
+ $(multilib_native_use_enable alsa) \ |
82 |
+ $(multilib_native_use_enable sqlite) \ |
83 |
+ PYTHON="${EPYTHON}" |
84 |
+} |
85 |
+ |
86 |
+multilib_src_install_all() { |
87 |
+ einstalldocs |
88 |
+ |
89 |
+ # package provides .pc files |
90 |
+ find "${D}" -name '*.la' -delete || die |
91 |
+} |