logo

overlay

My own overlay for experimentations, use with caution, no support is provided
commit: 05672a7798056f1052673a66490764a356175cf7
parent: df3d9ace47db88c8f7a90b260caedac95833ea69
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 22 Apr 2020 23:25:42 +0200

media-sound/oss: New Package

Diffstat:

Amedia-sound/oss/Manifest1+
Amedia-sound/oss/files/oss-4.2.2019_no_compressed_manpages.patch64++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Amedia-sound/oss/files/oss-4.2.2019_sysmacros.patch10++++++++++
Amedia-sound/oss/metadata.xml8++++++++
Amedia-sound/oss/oss-4.2.2019.ebuild46++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 129 insertions(+), 0 deletions(-)

diff --git a/media-sound/oss/Manifest b/media-sound/oss/Manifest @@ -0,0 +1 @@ +DIST oss-v4.2-build2019-src-gpl.tar.bz2 1829186 BLAKE2B 9e6691e24f33c2480147d660be22bfa506f4de2456853a8f57cc6e0629d23b6d11b7c86a14f0c5a55cf3ec48f4f55547a10071ca23d14fc84f780ac8a9f25784 SHA512 9c8f8e33c4c637df1be7d024ddc5e1bdfebb2e51deb9c97871cff3c2c4419e93e2ebea6cb1ef7abf4b61ae8b49edfd9165818ea3366c7d21f225ef5ca9aba429 diff --git a/media-sound/oss/files/oss-4.2.2019_no_compressed_manpages.patch b/media-sound/oss/files/oss-4.2.2019_no_compressed_manpages.patch @@ -0,0 +1,64 @@ +--- oss-v4.2-build2019-src-gpl/setup/Linux/build.sh.old 2020-04-22 23:19:18.042367733 +0200 ++++ oss-v4.2-build2019-src-gpl/setup/Linux/build.sh 2020-04-22 23:20:27.526622099 +0200 +@@ -132,18 +132,18 @@ + if test -f $SRCDIR/kernel/drv/$N/$N.man + then + sed "s:CONFIGFILEPATH:$OSSLIBDIR/conf:g" < $SRCDIR/kernel/drv/$N/$N.man > /tmp/ossman.txt +- $TXT2MAN -t "$CMD" -v "OSS Devices" -s 7 /tmp/ossman.txt | gzip -9 > prototype/usr/share/man/man7/$N.7.gz ++ $TXT2MAN -t "$CMD" -v "OSS Devices" -s 7 /tmp/ossman.txt > prototype/usr/share/man/man7/$N.7 + else + if test -f $SRCDIR/kernel/nonfree/drv/$N/$N.man + then + sed "s:CONFIGFILEPATH:$OSSLIBDIR/conf:g" < $SRCDIR/kernel/nonfree/drv/$N/$N.man > /tmp/ossman.txt +- $TXT2MAN -t "$CMD" -v "OSS Devices" -s 7 $SRCDIR/kernel/nonfree/drv/$N/$N.man | gzip -9 > prototype/usr/share/man/man7/$N.7.gz ++ $TXT2MAN -t "$CMD" -v "OSS Devices" -s 7 $SRCDIR/kernel/nonfree/drv/$N/$N.man > prototype/usr/share/man/man7/$N.7 + fi + fi + done + + sed "s:CONFIGFILEPATH:$OSSLIBDIR/conf:g" < $SRCDIR/kernel/drv/osscore/osscore.man > /tmp/ossman.txt +-$TXT2MAN -t "osscore" -v "OSS Devices" -s 7 /tmp/ossman.txt | gzip -9 > prototype/usr/share/man/man7/osscore.7.gz ++$TXT2MAN -t "osscore" -v "OSS Devices" -s 7 /tmp/ossman.txt > prototype/usr/share/man/man7/osscore.7 + rm -f /tmp/ossman.txt + + # Link the optional NOREGPARM modules +@@ -162,13 +162,13 @@ + do + N=`basename $n .man` + +- $TXT2MAN -t "$CMD" -v "OSS Devices" -s 7 $n | gzip -9 > prototype/usr/share/man/man7/$N.7.gz ++ $TXT2MAN -t "$CMD" -v "OSS Devices" -s 7 $n > prototype/usr/share/man/man7/$N.7 + done + + for n in $SRCDIR/misc/man1m/*.man + do + N=`basename $n .man` +- $TXT2MAN -t "$CMD" -v "OSS System Administration Commands" -s 1 $n | gzip -9 > prototype/usr/share/man/man1/$N.1.gz ++ $TXT2MAN -t "$CMD" -v "OSS System Administration Commands" -s 1 $n > prototype/usr/share/man/man1/$N.1 + done + + if ! cp lib/libOSSlib/libOSSlib.so lib/libsalsa/.libs/libsalsa.so.2.0.0 prototype/$OSSLIBDIR/lib +@@ -189,7 +189,7 @@ + for i in target/bin/* + do + CMD=`basename $i` +-$TXT2MAN -t "$CMD" -v "OSS User Commands" -s 1 cmd/$CMD/$CMD.man | gzip -9 > prototype/usr/share/man/man1/$CMD.1.gz ++$TXT2MAN -t "$CMD" -v "OSS User Commands" -s 1 cmd/$CMD/$CMD.man > prototype/usr/share/man/man1/$CMD.1 + echo done $CMD + done + +@@ -198,12 +198,12 @@ + CMD=`basename $i` + if test -f cmd/$CMD/$CMD.man + then +- $TXT2MAN -t "$CMD" -v "OSS System Administration Commands" -s 8 cmd/$CMD/$CMD.man | gzip -9 > prototype/usr/share/man/man8/$CMD.8.gz ++ $TXT2MAN -t "$CMD" -v "OSS System Administration Commands" -s 8 cmd/$CMD/$CMD.man > prototype/usr/share/man/man8/$CMD.8 + echo done $CMD + fi + done + +-$TXT2MAN -t "ossdetect" -v "User Commands" -s 8 os_cmd/Linux/ossdetect/ossdetect.man | gzip -9 > prototype/usr/share/man/man8/ossdetect.8.gz ++$TXT2MAN -t "ossdetect" -v "User Commands" -s 8 os_cmd/Linux/ossdetect/ossdetect.man > prototype/usr/share/man/man8/ossdetect.8 + echo done ossdetect + + cp -f $SRCDIR/oss/lib/flashsupport.c prototype/$OSSLIBDIR/lib diff --git a/media-sound/oss/files/oss-4.2.2019_sysmacros.patch b/media-sound/oss/files/oss-4.2.2019_sysmacros.patch @@ -0,0 +1,10 @@ +--- oss-v4.2-build2019-src-gpl/os_cmd/Linux/ossdetect/ossdetect.c 2020-04-22 22:58:08.862252980 +0200 ++++ oss-v4.2-build2019-src-gpl/os_cmd/Linux/ossdetect/ossdetect.c 2020-04-22 22:58:19.357989299 +0200 +@@ -23,6 +23,7 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <sys/dir.h> ++#include <sys/sysmacros.h> + + #define PCI_PASS 0 + #define USB_PASS 1 diff --git a/media-sound/oss/metadata.xml b/media-sound/oss/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> + </maintainer> +</pkgmetadata> diff --git a/media-sound/oss/oss-4.2.2019.ebuild b/media-sound/oss/oss-4.2.2019.ebuild @@ -0,0 +1,46 @@ +# Copyright 2020 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_P="oss-v$(ver_cut 1-2)-build$(ver_cut 3)-src-gpl" + +DESCRIPTION="Open Sound System (OSS)" +HOMEPAGE="http://www.opensound.com/" +SRC_URI="http://www.opensound.com/developer/sources/stable/gpl/${MY_P}.tar.bz2" +S="${WORKDIR}/${MY_P}" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +DEPENDS="x11-libs/gtk+:2" +RDEPENDS="${DEPENDS}" + +PATCHES=( + "${FILESDIR}/oss-4.2.2019_sysmacros.patch" + "${FILESDIR}/oss-4.2.2019_no_compressed_manpages.patch" +) + +src_prepare() { + default + + mkdir "${S}_build" || die "Failed creating empty build directory" +} + +src_configure() { + cd "${S}_build" || die "Failed changing to build directory" + + "${S}/configure" --enable-libsalsa=NO --regparm || die "Failed running ./configure" +} + +src_compile() { + cd "${S}_build" || die "Failed changing to build directory" + + emake build +} + +src_install() { + cd "${S}_build" || die "Failed changing to build directory" + + emake DESTDIR="${D}/" copy +}