From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AA873138334 for ; Sun, 15 Dec 2019 19:47:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A9679E0831; Sun, 15 Dec 2019 19:47:57 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 811AEE0831 for ; Sun, 15 Dec 2019 19:47:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F3E0A34D8AF for ; Sun, 15 Dec 2019 19:47:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9D4B28AF for ; Sun, 15 Dec 2019 19:47:53 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1576439267.4201cebc1ec69ededd2db6043e201afc8ae38acc.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/csound/, media-sound/csound/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/csound/csound-9999.ebuild media-sound/csound/files/csound-6.13.0-xdg-open.patch media-sound/csound/files/repackage.sh X-VCS-Directories: media-sound/csound/ media-sound/csound/files/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: 4201cebc1ec69ededd2db6043e201afc8ae38acc X-VCS-Branch: master Date: Sun, 15 Dec 2019 19:47:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: dcb23daf-642f-4282-a76b-67a9edf3be82 X-Archives-Hash: f0b6232b9ecaa566c050504db6dac2f3 commit: 4201cebc1ec69ededd2db6043e201afc8ae38acc Author: Miroslav Šulc gentoo org> AuthorDate: Sun Dec 15 19:45:30 2019 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Sun Dec 15 19:47:47 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4201cebc media-sound/csound-9999: some improvements 1) added info about repackaging due to license issue 2) added patch from OpenSUSE to support xdg-open 3) added script for repackaging csound for redistribution Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Miroslav Šulc gentoo.org> media-sound/csound/csound-9999.ebuild | 8 +++++ .../csound/files/csound-6.13.0-xdg-open.patch | 24 +++++++++++++++ media-sound/csound/files/repackage.sh | 35 ++++++++++++++++++++++ 3 files changed, 67 insertions(+) diff --git a/media-sound/csound/csound-9999.ebuild b/media-sound/csound/csound-9999.ebuild index bf5bdabf976..04aea31ab2b 100644 --- a/media-sound/csound/csound-9999.ebuild +++ b/media-sound/csound/csound-9999.ebuild @@ -1,6 +1,10 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# As upstream (and we aswell) are not allowed to redistribute scansyn, +# we have to repackage the tarball. For that purpose use `bash files/repackage.sh version` +# Reference: https://github.com/csound/csound/issues/1148 + EAPI=7 PYTHON_COMPAT=( python3_{6,7,8} ) @@ -97,6 +101,10 @@ fi # requires specific alsa settings RESTRICT="test" +PATCHES=( + "${FILESDIR}/csound-6.13.0-xdg-open.patch" +) + pkg_setup() { if use python || use test ; then python-single-r1_pkg_setup diff --git a/media-sound/csound/files/csound-6.13.0-xdg-open.patch b/media-sound/csound/files/csound-6.13.0-xdg-open.patch new file mode 100644 index 00000000000..19d428fabf3 --- /dev/null +++ b/media-sound/csound/files/csound-6.13.0-xdg-open.patch @@ -0,0 +1,24 @@ +Source: https://build.opensuse.org/package/view_file/openSUSE:Factory/csound/csound-6.08-xdg-open.patch +Index: csound-6.12.2/installer/misc/vim/cshelp +=================================================================== +--- csound-6.12.2.orig/installer/misc/vim/cshelp 2018-11-07 16:05:23.000000000 +0200 ++++ csound-6.12.2/installer/misc/vim/cshelp 2019-04-05 15:32:23.670308342 +0200 +@@ -3,7 +3,9 @@ + BROWSER_CMD="" + + if [ "${DISPLAY}" != "" ] ; then +- if ( which links | grep -q -G -e "^/usr" ) ; then ++ if ( which xdg-open | grep -E -e "^(/usr)?/bin" ); then ++ BROWSER_CMD="xdg-open" ; ++ elif ( which links | grep -q -G -e "^/usr" ) ; then + BROWSER_CMD="links -g" ; + elif ( which konqueror | grep -q -G -e "^/opt" ) ; then + BROWSER_CMD="konqueror" ; +@@ -38,5 +40,5 @@ else + OPNAME="${1}" ; + fi + +-exec ${BROWSER_CMD} "/usr/local/share/doc/csound/manual/${OPNAME}.html" ++exec ${BROWSER_CMD} "/usr/share/doc/csound-manual/${OPNAME}.html" + + diff --git a/media-sound/csound/files/repackage.sh b/media-sound/csound/files/repackage.sh new file mode 100644 index 00000000000..39b8068b930 --- /dev/null +++ b/media-sound/csound/files/repackage.sh @@ -0,0 +1,35 @@ +#! /bin/bash + +# Adjusted from OpenSUSE script +# Source: https://build.opensuse.org/package/view_file/openSUSE:Factory/csound/pre_checkin.sh + +VERSION="${1}" + +if [[ -z "${VERSION}" ]]; then + echo "Version must be specified" + exit 1 +fi + +rm -f *.tar.* + +wget https://github.com/csound/csound/archive/${VERSION}.tar.gz || exit 1 + +echo -e "\n\nUnpacking tarball\n" +tar -xf ${VERSION}.tar.gz + +echo -e "Removing undistibutable files\n" +rm -f csound-${VERSION}/Opcodes/scansyn* + +echo -e "Creating distributable tarball\n" +tar -acf csound-${VERSION}-distibutable.tar.xz csound-${VERSION} + +echo -e "Cleaning up\n" +rm -rf csound-${VERSION} ${VERSION}.tar.gz + +if ! test -e ${VERSION}.tar.gz; then + echo "success" + exit 0 +else + echo "error" + exit 1 +fi