media-sound/sonic: new package
This commit is contained in:
parent
889dcf8ffc
commit
406b93dfcb
3
media-libs/sonic/Manifest
Normal file
3
media-libs/sonic/Manifest
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
AUX sonic-makefile-libdir.patch 1329 BLAKE2B fb4fe9987577269985167424bd1550d8e47776c5d3afcd623f7bcb95072267303172f59fb2fa20e3d6c0e6dee693ca4204819a2f0f991912567763209a9fe9df SHA512 6bddb91929e4996dc7a9e5cd9ead6a0618bacaa9e5ad5a3db6aa65ff680c8520bf26a9dc43544ebeb9242e81218c0f9ac94b62a7e10500accc9f8a60a65843c9
|
||||||
|
DIST sonic-0.2.0.tar.gz 5340269 BLAKE2B c4a45291e87bfaa36b7ee248b0f6af148d7c90a6e1efaf4e7d99b86ff987817ff49dc55aa2fb41151ea7facbd87858fc6b40818a776babdbc228f2f2406a616d SHA512 e70510c89c4f29c30f2a3443a1c4fc1aab2c99147e2ebd1dea3cbb2b89b8bdcee14dc504600ac1f04e82d32c19f17b06fbb417311853beb764c24d15687a126f
|
||||||
|
EBUILD sonic-0.2.0.ebuild 575 BLAKE2B b8182b35d921c534c1044ff2ff7b6de43c65d06a02702e8a9dcdca17cd65390f4d96b022f48466d2b6ef534740ccaa84cb522014009fa068ccbd3239036a17ff SHA512 7bdbcfb634de8f29c4f9ec09c87a4efd4ef620ae9bb3824c714151c3fc64e9b66c2a74c6f2b98e39d813423a470c53a0ed80217df4309c88d593d7d9e6058f57
|
35
media-libs/sonic/files/sonic-makefile-libdir.patch
Normal file
35
media-libs/sonic/files/sonic-makefile-libdir.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 696e211..43a52ce 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -40,20 +40,20 @@ libsonic.a: sonic.o
|
||||||
|
$(AR) cqs libsonic.a sonic.o
|
||||||
|
|
||||||
|
install: sonic libsonic.so.$(LIB_TAG) sonic.h
|
||||||
|
- install -d $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/include $(DESTDIR)$(PREFIX)/lib
|
||||||
|
+ install -d $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/include $(DESTDIR)$(LIBDIR)
|
||||||
|
install sonic $(DESTDIR)$(PREFIX)/bin
|
||||||
|
install sonic.h $(DESTDIR)$(PREFIX)/include
|
||||||
|
- install libsonic.so.$(LIB_TAG) $(DESTDIR)$(PREFIX)/lib
|
||||||
|
+ install libsonic.so.$(LIB_TAG) $(DESTDIR)$(LIBDIR)
|
||||||
|
install libsonic.a $(DESTDIR)$(LIBDIR)
|
||||||
|
- ln -sf libsonic.so.$(LIB_TAG) $(DESTDIR)$(PREFIX)/lib/libsonic.so
|
||||||
|
- ln -sf libsonic.so.$(LIB_TAG) $(DESTDIR)$(PREFIX)/lib/libsonic.so.0
|
||||||
|
+ ln -sf libsonic.so.$(LIB_TAG) $(DESTDIR)$(LIBDIR)/libsonic.so
|
||||||
|
+ ln -sf libsonic.so.$(LIB_TAG) $(DESTDIR)$(LIBDIR)/libsonic.so.0
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -f $(DESTDIR)$(PREFIX)/bin/sonic
|
||||||
|
rm -f $(DESTDIR)$(PREFIX)/include/sonic.h
|
||||||
|
- rm -f $(DESTDIR)$(PREFIX)/lib/libsonic.so.$(LIB_TAG)
|
||||||
|
- rm -f $(DESTDIR)$(PREFIX)/lib/libsonic.so
|
||||||
|
- rm -f $(DESTDIR)$(PREFIX)/lib/libsonic.so.0
|
||||||
|
+ rm -f $(DESTDIR)$(LIBDIR)/libsonic.so.$(LIB_TAG)
|
||||||
|
+ rm -f $(DESTDIR)$(LIBDIR)/libsonic.so
|
||||||
|
+ rm -f $(DESTDIR)$(LIBDIR)/libsonic.so.0
|
||||||
|
rm -f $(DESTDIR)$(LIBDIR)/libsonic.a
|
||||||
|
|
||||||
|
clean:
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
24
media-libs/sonic/sonic-0.2.0.ebuild
Normal file
24
media-libs/sonic/sonic-0.2.0.ebuild
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
DESCRIPTION="Simple library to speed up or slow down speech"
|
||||||
|
HOMEPAGE="http://dev.vinux-project.org/sonic"
|
||||||
|
SRC_URI="https://github.com/espeak-ng/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}-release-${PV}"
|
||||||
|
|
||||||
|
PATCHES="${FILESDIR}/sonic-makefile-libdir.patch"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake \
|
||||||
|
PREFIX="${EPREFIX}/usr" \
|
||||||
|
LIBDIR="\$(PREFIX)/$(get_libdir)" \
|
||||||
|
DESTDIR="${D}" \
|
||||||
|
install
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user