[proaudio] Fw: media-sound/linuxsampler-9999: some updates and fixes |
[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]
Resending ebuild with its patch. Just diffed old and new ebuild, regardless filenames. Date: Mon, 22 May 2017 18:24:29 +0500 From: Nikita Zlobin <nick87720z@xxxxxxxxx> To: Proaudio Mailing List <proaudio@xxxxxxxxxxxxxxxxxxx> Subject: media-sound/linuxsampler-9999: some updates and fixes I got problems, recompiling linuxsampler for latest changes. Fixed ebuild is attached. Changes: 1. autoreconf is not enough, replaced with: make -f Makefile.svn 2. Moved to EAPI 6. As result, no autotools-utils is used. 3. More missing stuff to DEPEND: libsndfile and virtual/yacc (though claimed requirement is bison, as was said in gentoo bug #556204, i'm unsure) 4. New USE flag: debug (enables some configure options for extra log and checks) 5. How about to notify user about automagic dependencies? 6. FIXED: Forced to bypass problem rebuilding instrument.db with enabled db support, since it does it not in DESTDIR
Attachment:
linuxsampler-9999-r1.ebuild
Description: Binary data
--- /var/lib/layman/proaudio/media-sound/linuxsampler/linuxsampler-9999.ebuild 2015-09-30 13:16:53.409137352 +0500 +++ /usr/local/portage/media-sound/linuxsampler/linuxsampler-9999-r1.ebuild 2017-05-22 17:48:33.652757095 +0500 @@ -2,11 +2,13 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI="4" -AUTOTOOLS_AUTORECONF=1 +EAPI="6" + +#AUTOTOOLS_AUTORECONF=1 # bug -AUTOTOOLS_IN_SOURCE_BUILD=1 -inherit subversion autotools-utils +#AUTOTOOLS_IN_SOURCE_BUILD=1 + +inherit subversion DESCRIPTION="LinuxSampler is a software audio sampler engine with professional grade features." HOMEPAGE="http://www.linuxsampler.org/" @@ -15,7 +17,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="" -IUSE="alsa doc dssi jack lv2 sqlite static-libs" +IUSE="alsa doc dssi jack lv2 sqlite static-libs debug" REQUIRED_USE="|| ( alsa jack )" # media-libs/dssi, media-libs/lv2 automagic @@ -24,31 +26,56 @@ dssi? ( media-libs/dssi ) jack? ( media-sound/jack-audio-connection-kit ) lv2? ( media-libs/lv2 ) - sqlite? ( >=dev-db/sqlite-3.3 )" + sqlite? ( >=dev-db/sqlite-3.3 ) + media-libs/libsndfile + " DEPEND="${RDEPEND} virtual/pkgconfig + virtual/yacc doc? ( app-doc/doxygen )" -DOCS=(AUTHORS ChangeLog NEWS README) +DOCS=(AUTHORS ChangeLog COPYING NEWS README) + +src_prepare() { + default + + # Generic autoreconf is not enough, using custom one + emake -j1 -f Makefile.svn +} src_configure() { - local myeconfargs=( - $(use_enable alsa alsa-driver) - --disable-arts-driver - $(use_enable jack jack-driver) - $(use_enable sqlite instruments-db) - $(use_enable static-libs static) - ) + econf \ + --enable-alsa-driver=$(usex alsa) \ + --disable-arts-driver \ + --enable-jack-driver=$(usex jack) \ + --enable-instruments-db=$(usex sqlite) \ + --enable-static=$(usex static-libs) + --enable-dev-mode=$(usex debug) + --enable-debug-level=$(usex debug 10 1) - autotools-utils_src_configure + # How about to notify user about automagic deps... + einfo "The following features are enabled automagically: lv2, dssi" } src_compile() { - autotools-utils_src_compile -j1 - use doc && autotools-utils_src_compile -j1 docs + make -j1 parser + emake -j1 + use doc && emake -j1 docs } src_install() { + # FIXME: Bypassing unsuccessful attempt to regenerate DB... + if [ -f /var/lib/linuxsampler/instruments.db ]; then + insinto /var/lib/linuxsampler + doins /var/lib/linuxsampler/instruments.db + else + dodir /var/lib/linuxsampler + touch ${DESTDIR}/var/lib/linuxsampler/instruments.db + fi + ewarn "Default instruments database is not generated, due to problem with installing in separate DESTDIR" + ewarn "You have to do it manually later." + ewarn "" + use doc && HTML_DOCS=("${BUILD_DIR}"/doc/html/) - autotools-utils_src_install + emake install DESTDIR=${D} }
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |