1 |
mgorny 14/11/30 10:46:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: portmidi-217-r1.ebuild |
5 |
Log: |
6 |
Convert to distutils-r1. |
7 |
|
8 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.5 media-libs/portmidi/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/portmidi/ChangeLog?rev=1.5&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/portmidi/ChangeLog?rev=1.5&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/portmidi/ChangeLog?r1=1.4&r2=1.5 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/portmidi/ChangeLog,v |
20 |
retrieving revision 1.4 |
21 |
retrieving revision 1.5 |
22 |
diff -u -r1.4 -r1.5 |
23 |
--- ChangeLog 13 Jun 2012 12:58:07 -0000 1.4 |
24 |
+++ ChangeLog 30 Nov 2014 10:46:00 -0000 1.5 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for media-libs/portmidi |
27 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/portmidi/ChangeLog,v 1.4 2012/06/13 12:58:07 johu Exp $ |
29 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/portmidi/ChangeLog,v 1.5 2014/11/30 10:46:00 mgorny Exp $ |
31 |
+ |
32 |
+*portmidi-217-r1 (30 Nov 2014) |
33 |
+ |
34 |
+ 30 Nov 2014; Michał Górny <mgorny@g.o> +portmidi-217-r1.ebuild: |
35 |
+ Convert to distutils-r1. |
36 |
|
37 |
13 Jun 2012; Johannes Huber <johu@g.o> portmidi-217.ebuild: |
38 |
Stable for x86, wrt bug #417127 |
39 |
@@ -17,4 +22,3 @@ |
40 |
+files/portmidi-217-cmake.patch, +files/portmidi-217-python.patch, |
41 |
+metadata.xml: |
42 |
Initial import from sunrise (bug #90614, thanks to all contributors). |
43 |
- |
44 |
|
45 |
|
46 |
|
47 |
1.1 media-libs/portmidi/portmidi-217-r1.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/portmidi/portmidi-217-r1.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/portmidi/portmidi-217-r1.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: portmidi-217-r1.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2014 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/portmidi/portmidi-217-r1.ebuild,v 1.1 2014/11/30 10:46:00 mgorny Exp $ |
57 |
|
58 |
EAPI="5" |
59 |
|
60 |
PYTHON_COMPAT=( python2_7 ) |
61 |
DISTUTILS_OPTIONAL=1 |
62 |
|
63 |
inherit cmake-utils distutils-r1 eutils multilib java-pkg-opt-2 |
64 |
|
65 |
DESCRIPTION="A library for real time MIDI input and output" |
66 |
HOMEPAGE="http://portmedia.sourceforge.net/" |
67 |
SRC_URI="mirror://sourceforge/portmedia/${PN}-src-${PV}.zip" |
68 |
|
69 |
LICENSE="MIT" |
70 |
SLOT="0" |
71 |
KEYWORDS="~amd64 ~x86" |
72 |
IUSE="debug doc java python static-libs test-programs" |
73 |
|
74 |
CDEPEND="media-libs/alsa-lib" |
75 |
RDEPEND="${CDEPEND} |
76 |
java? ( >=virtual/jre-1.6 )" |
77 |
DEPEND="${CDEPEND} |
78 |
app-arch/unzip |
79 |
java? ( >=virtual/jdk-1.6 ) |
80 |
python? ( ${PYTHON_DEPS} |
81 |
>=dev-python/cython-0.12.1[${PYTHON_USEDEP}] ) |
82 |
doc? ( |
83 |
app-doc/doxygen |
84 |
dev-texlive/texlive-fontsrecommended |
85 |
dev-texlive/texlive-latexextra |
86 |
dev-tex/xcolor |
87 |
virtual/latex-base |
88 |
)" |
89 |
|
90 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
91 |
|
92 |
S=${WORKDIR}/${PN} |
93 |
|
94 |
pkg_setup() { |
95 |
use java && java-pkg-opt-2_pkg_setup |
96 |
} |
97 |
|
98 |
src_prepare() { |
99 |
# fix parallel make failures, fix java support, and allow optional |
100 |
# components like test programs and static libs to be skipped |
101 |
epatch "${FILESDIR}"/${P}-cmake.patch |
102 |
|
103 |
# add include directories and remove references to missing files |
104 |
epatch "${FILESDIR}"/${P}-python.patch |
105 |
|
106 |
# install wrapper for pmdefaults |
107 |
if use java ; then |
108 |
cat > pm_java/pmdefaults/pmdefaults <<-EOF |
109 |
#!/bin/sh |
110 |
java -Djava.library.path="${EPREFIX}/usr/$(get_libdir)/" \\ |
111 |
-jar "${EPREFIX}/usr/share/${PN}/lib/pmdefaults.jar" |
112 |
EOF |
113 |
[[ $? -ne 0 ]] && die "cat pmdefaults failed" |
114 |
fi |
115 |
} |
116 |
|
117 |
src_configure() { |
118 |
if use debug ; then |
119 |
CMAKE_BUILD_TYPE=Debug |
120 |
else |
121 |
CMAKE_BUILD_TYPE=Release |
122 |
fi |
123 |
|
124 |
local mycmakeargs=( |
125 |
$(cmake-utils_use java PORTMIDI_ENABLE_JAVA) |
126 |
$(cmake-utils_use static-libs PORTMIDI_ENABLE_STATIC) |
127 |
$(cmake-utils_use test-programs PORTMIDI_ENABLE_TEST) |
128 |
) |
129 |
|
130 |
if use java ; then |
131 |
mycmakeargs+=(-DJAR_INSTALL_DIR="${EPREFIX}/usr/share/${PN}/lib") |
132 |
fi |
133 |
|
134 |
cmake-utils_src_configure |
135 |
} |
136 |
|
137 |
src_compile() { |
138 |
cmake-utils_src_compile |
139 |
|
140 |
if use python ; then |
141 |
sed -i -e "/library_dirs=.*linux/s#./linux#${CMAKE_BUILD_DIR}#" pm_python/setup.py || die |
142 |
pushd pm_python > /dev/null |
143 |
distutils-r1_src_compile |
144 |
popd > /dev/null |
145 |
fi |
146 |
|
147 |
if use doc ; then |
148 |
doxygen || die "doxygen failed" |
149 |
pushd latex > /dev/null |
150 |
VARTEXFONTS="${T}"/fonts emake |
151 |
popd > /dev/null |
152 |
fi |
153 |
} |
154 |
|
155 |
src_install() { |
156 |
cmake-utils_src_install |
157 |
|
158 |
dodoc CHANGELOG.txt README.txt pm_linux/README_LINUX.txt |
159 |
|
160 |
use doc && dodoc latex/refman.pdf |
161 |
|
162 |
if use python ; then |
163 |
pushd pm_python > /dev/null |
164 |
distutils-r1_src_install |
165 |
popd > /dev/null |
166 |
fi |
167 |
|
168 |
if use java ; then |
169 |
newdoc pm_java/README.txt README_JAVA.txt |
170 |
newicon pm_java/pmdefaults/pmdefaults-icon.png pmdefaults.png |
171 |
make_desktop_entry pmdefaults Pmdefaults pmdefaults "AudioVideo;Audio;Midi;" |
172 |
fi |
173 |
|
174 |
if use test-programs ; then |
175 |
exeinto /usr/$(get_libdir)/${PN} |
176 |
local app |
177 |
for app in latency midiclock midithread midithru mm qtest sysex test ; do |
178 |
doexe "${CMAKE_BUILD_DIR}"/${app} |
179 |
done |
180 |
fi |
181 |
} |