Skip to content

Commit

Permalink
media-soud/synthv1: use cmake build system
Browse files Browse the repository at this point in the history
  • Loading branch information
mazes-80 committed Feb 22, 2022
1 parent 0d3e1c1 commit ae12744
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 43 deletions.
4 changes: 1 addition & 3 deletions media-sound/synthv1/Manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
DIST synthv1-0.9.18.tar.gz 243861 BLAKE2B b09b9efa66fe7486aa1def65c8b39346131a4a56f49eb895e4da2d4d225c433afbfc6a9186be717a36051d54d6044f377f7f08197c8b28c003d2dd528fd2e829 SHA512 02da7667eeb99797da2a8a39cfcda677ed664c717e46e9cd95eb5f84112c7ffcc1c1c493694cb7c8e0bec9a011b5247ce9a798931090e55a16a84b9411c70d4e
DIST synthv1-0.9.19.tar.gz 244220 BLAKE2B 2378712fc0c0aa776fd5605d9d5929e6289efbddd98f72efedb1b0d3b45a2c0df1f9302558e88458f517d2bf0f677e6c8adc684cb6ffa43986836d2eb3aa9ba4 SHA512 0a0cfba1549e7eb323d9ff566a418269e23629541b73d002725c62c4a5a5747cbc08972d81f3f5b76a1883367b04dc2a84db1ecc2ac0e89ba2e184f20b2acee8
DIST synthv1-0.9.21.tar.gz 245048 BLAKE2B fe33af9daed4372e37565c544ab73263698cf5c2c82995e7c431b009972f3f2f9bf41f57f85df1421b0228493aec36fa3d9c5dfce17c4a39a716408cbdda698b SHA512 a6762a857188cab3a0135f76a0d2e2eafb95eae27b7fa87aaa4ca5ac466aef332ffd17f29740ff69ebd31256dabc48f000d3415ba0cccffc302a7bea5c806935
DIST synthv1-0.9.24.tar.gz 230578 BLAKE2B 02a20882a1ab4d0997360f723304610a5733150b30570be07ee495a6b13f0c59d5753d9d78776b25b12f7f261e092e8873f47234252b433bfb15fdc277acab73 SHA512 1b6875f0b784c3bc21e5cc691cddbc922f67bb6e3335fa2ee330c97e947fb15dc3b26e25c08d0ff5e43ef8e3f9eaf04a8b47f8ba4e8cff9ef131a4a279092bdb
1 change: 1 addition & 0 deletions media-sound/synthv1/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
<use>
<flag name="standalone">Enable building of standalone application</flag>
<flag name="lv2">Enable building of LV2 plugin</flag>
<flag name="nsm">New Session Management support</flag>
</use>
</pkgmetadata>
1 change: 0 additions & 1 deletion media-sound/synthv1/synthv1-0.9.18.ebuild

This file was deleted.

1 change: 0 additions & 1 deletion media-sound/synthv1/synthv1-0.9.19.ebuild

This file was deleted.

File renamed without changes.
58 changes: 20 additions & 38 deletions media-sound/synthv1/synthv1-9999-r1.ebuild
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
EAPI=8

inherit autotools xdg-utils
inherit cmake xdg

DESCRIPTION="An old-school all-digital drum-kit sampler synthesizer with stereo fx"
HOMEPAGE="http://synthv1.sourceforge.net/"

DESCRIPTION="Old-school all-digital 4-oscillator subtractive polyphonic synthesizer"
HOMEPAGE="http://synthv1.sourceforge.net"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/rncbc/${PN}.git"
Expand All @@ -21,10 +22,11 @@ fi
LICENSE="GPL-2+"
SLOT="0"

IUSE="debug standalone alsa lv2 osc"
IUSE="debug standalone alsa lv2 nsm osc"
REQUIRED_USE="
|| ( standalone lv2 )
alsa? ( standalone )"
alsa? ( standalone )
nsm? ( standalone )"

RDEPEND="
dev-qt/qtcore:5
Expand All @@ -34,45 +36,25 @@ RDEPEND="
media-libs/libsndfile
standalone? ( virtual/jack )
alsa? ( media-libs/alsa-lib )
nsm? ( media-sound/new-session-manager )
lv2? ( media-libs/lv2 )
osc? ( media-libs/liblo )
"
DEPEND="${RDEPEND}"

src_prepare() {
eautoreconf

# Remove compression of manpages
sed -i -e "/@gzip.*man1/d" Makefile.in || die "sed failed"

# Disable stripping
echo "QMAKE_STRIP=" >> src/src_core.pri.in
echo "QMAKE_STRIP=" >> src/src_jack.pri.in
echo "QMAKE_STRIP=" >> src/src_ui.pri.in
echo "QMAKE_STRIP=" >> src/src_lv2.pri.in
sed -i -e '/strip $(TARGET)/d' src/src_jack.pro || die "sed failed"
sed -i -e '/strip $(TARGET)/d' src/src_lv2.pro || die "sed failed"

default
sed -i 's:strip:true:' src/CMakeLists.txt || die
cmake_src_prepare
}

src_configure() {
local -a myeconfargs=(
$(use_enable debug)
$(use_enable standalone jack)
$(use_enable alsa alsa-midi)
$(use_enable lv2)
$(use_enable osc liblo)
local -a mycmakeargs=(
-DCONFIG_LV2=$(usex lv2)
-DCONFIG_JACK=$(usex standalone)
-DCONFIG_LIBLO=$(usex osc)
-DCONFIG_NSM=$(usex nsm)
-DCONFIG_ALSA_MIDI=$(usex alsa)
-DCONFIG_DEBUG=$(usex debug)
)
econf "${myeconfargs[@]}"
}

pkg_postinst() {
xdg_mimeinfo_database_update
xdg_icon_cache_update
}

pkg_postrm() {
xdg_mimeinfo_database_update
xdg_icon_cache_update
cmake_src_configure
}

0 comments on commit ae12744

Please sign in to comment.