mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
media-sound/orca-c: new package, add 0_pre20250416
Signed-off-by: Niklaus 'vimja' Hofer <gentoo-bugzilla@vimja.email>
This commit is contained in:
1
media-sound/orca-c/Manifest
Normal file
1
media-sound/orca-c/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST orca-c-0_pre20250416.tar.gz 80494 BLAKE2B aa7516c10dd1860b538123a311d036a59ea86e7bd4e2bddc49b1bc425c8697028dcfb9522ac6c838cac6836b73c2b227e881de7f94abdf011b0d06677afe2126 SHA512 7480dc4897bd9d1765b6c932b1f03ec0e30123fab1c709de2ca3897b52c95dfa878993f433cf3b2a51340666b550c3da3b0484300ff46f2a84d9f52ae0d955a2
|
||||
17
media-sound/orca-c/metadata.xml
Normal file
17
media-sound/orca-c/metadata.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gentoo-bugzilla@vimja.email</email>
|
||||
<name>Niklaus 'vimja' Hofer</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="mouse">Enable or disable mouse features in the livecoding
|
||||
environment.</flag>
|
||||
<flag name="portmidi">Enable or disable hardware MIDI output support
|
||||
with PortMidi.</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">hundredrabbits/Orca-c</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
71
media-sound/orca-c/orca-c-0_pre20250416.ebuild
Normal file
71
media-sound/orca-c/orca-c-0_pre20250416.ebuild
Normal file
@@ -0,0 +1,71 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Live Programming Environment(C Port)"
|
||||
HOMEPAGE="
|
||||
https://wiki.xxiivv.com/site/orca.html
|
||||
https://github.com/hundredrabbits/Orca-c
|
||||
"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/hundredrabbits/Orca-c.git"
|
||||
else
|
||||
GIT_COMMIT=9df9786e2ad3c01955cdf4cdd5ae1fffad8fa5cc
|
||||
MY_PN="Orca-c"
|
||||
SRC_URI="https://github.com/hundredrabbits/${MY_PN}/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}"/"${MY_PN}-${GIT_COMMIT}"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="doc examples +mouse portmidi static hardened"
|
||||
|
||||
DEPEND="
|
||||
static? (
|
||||
sys-libs/ncurses[static-libs]
|
||||
)
|
||||
!static? (
|
||||
sys-libs/ncurses
|
||||
)
|
||||
portmidi? (
|
||||
media-libs/portmidi
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=(
|
||||
"README.md",
|
||||
examples
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
compile_options=(
|
||||
$(usev static --static)
|
||||
$(usev hardened --harden)
|
||||
$(usex portmidi '--portmid' '--no-portmidi')
|
||||
$(usex mouse '--mouse' '--no-mouse')
|
||||
)
|
||||
|
||||
#sed --in-place --expression='s/ -g0//g' ./tool
|
||||
#sed --in-place --expression='s/ -DNDEBUG//g' ./tool
|
||||
sed --in-place --expression='s/-flto -s/-flto/g' ./tool
|
||||
|
||||
./tool build ${compile_options[@]} orca
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/bin
|
||||
doexe build/orca
|
||||
|
||||
use doc && dodoc README.md
|
||||
if use examples; then
|
||||
docinto examples
|
||||
dodoc -r examples
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user