From 5866f0ae1aa2f6651d57d84facceebfc94acc924 Mon Sep 17 00:00:00 2001 From: Mattéo Rossillol‑‑Laruelle Date: Tue, 6 Aug 2024 15:02:46 +0200 Subject: dev-cpp/finalcut: revbump MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This revision removes the `static-libs` USE flag. See-also: https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0302 Signed-off-by: Mattéo Rossillol‑‑Laruelle --- dev-cpp/finalcut/finalcut-0.9.1-r1.ebuild | 99 +++++++++++++++++++++++++++++++ dev-cpp/finalcut/finalcut-0.9.1.ebuild | 87 --------------------------- dev-cpp/finalcut/finalcut-9999.ebuild | 20 +++++-- 3 files changed, 115 insertions(+), 91 deletions(-) create mode 100644 dev-cpp/finalcut/finalcut-0.9.1-r1.ebuild delete mode 100644 dev-cpp/finalcut/finalcut-0.9.1.ebuild (limited to 'dev-cpp') diff --git a/dev-cpp/finalcut/finalcut-0.9.1-r1.ebuild b/dev-cpp/finalcut/finalcut-0.9.1-r1.ebuild new file mode 100644 index 000000000..9ad7ecdd3 --- /dev/null +++ b/dev-cpp/finalcut/finalcut-0.9.1-r1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic + +DESCRIPTION="A text-based widget toolkit" +HOMEPAGE="https://github.com/gansm/finalcut/" + +if [[ "${PV}" = 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/gansm/finalcut.git" +else + SRC_URI="https://github.com/gansm/finalcut/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="LGPL-3+" +SLOT="0/${PV}" +IUSE="doc examples +gpm test" +REQUIRED_USE="test? ( !examples )" +RESTRICT="!test? ( test )" + +DEPEND=" + sys-libs/ncurses:=[tinfo] + gpm? ( sys-libs/gpm ) +" + +# autoconf-archive needed to eautoreconf +BDEPEND=" + dev-build/autoconf-archive + virtual/pkgconfig + test? ( >=dev-util/cppunit-1.12.0 ) +" + +RDEPEND="${DEPEND}" + +DOCS=( + AUTHORS + ChangeLog + CODE_OF_CONDUCT.md + Contributing.md + SECURITY.md +) + +src_prepare() { + default + + [[ "${PV}" = 9999 ]] || eapply "${FILESDIR}/${P}-fix-tests.ebuild" + + sed -i "/doc_DATA/d" Makefile.am || die + + sed -i "/AM_CPPFLAGS/ s/-Werror//" {examples,final,test}/Makefile.am \ + || die 'Failed to remove `-Werror` from `CPPFLAGS`' + + for component in doc examples test; do + if ! use "${component}"; then + sed -i "/SUBDIRS/ s/${component}//" Makefile.am \ + || die "Failed to remove ${component} from the building process" + fi + done + + eautoreconf +} + +src_configure() { + use test && append-cxxflags -O0 -DDEBUG -DUNIT_TEST + + econf \ + $(use_with gpm) \ + $(use_with test unit-test) +} + +src_install() { + einstalldocs + + emake DESTDIR="${ED}" PACKAGE="${PF}" install + + use doc || dodoc doc/first-steps* + + if use examples; then + local examples="/usr/share/doc/${PF}/examples" + docompress -x "${examples}" + + for example in examples/.libs/*; do + example="${example#examples/.libs/}" + + local install_dir="${examples}/${example}" + + insinto "${install_dir}" + doins "examples/${example}.cpp" + exeinto "${install_dir}" + doexe "examples/${example}" + done + fi + + find "${ED}" -name "*.la" -delete || die +} diff --git a/dev-cpp/finalcut/finalcut-0.9.1.ebuild b/dev-cpp/finalcut/finalcut-0.9.1.ebuild deleted file mode 100644 index ac8b77e71..000000000 --- a/dev-cpp/finalcut/finalcut-0.9.1.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools flag-o-matic - -DESCRIPTION="A text-based widget toolkit" -HOMEPAGE="https://github.com/gansm/finalcut/" - -if [[ "${PV}" = 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/gansm/finalcut.git" -else - SRC_URI="https://github.com/gansm/finalcut/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" -fi - -LICENSE="LGPL-3+" -SLOT="0/${PV}" -IUSE="doc examples +gpm static-libs test" -REQUIRED_USE="test? ( !examples )" -RESTRICT="!test? ( test )" - -DEPEND=" - sys-libs/ncurses:=[tinfo] - gpm? ( sys-libs/gpm ) -" - -# autoconf-archive needed to eautoreconf -BDEPEND=" - dev-build/autoconf-archive - virtual/pkgconfig - test? ( >=dev-util/cppunit-1.12.0 ) -" - -RDEPEND="${DEPEND}" - -src_prepare() { - default - - [[ "${PV}" = 9999 ]] || eapply "${FILESDIR}/${P}-fix-tests.ebuild" - - sed -i "/AM_CPPFLAGS/ s/-Werror//" {examples,final,test}/Makefile.am \ - || die 'Failed to remove `-Werror` from `CPPFLAGS`' - - for component in doc examples test; do - if ! use "${component}"; then - sed -i "/SUBDIRS/ s/${component}//" Makefile.am \ - || die "Failed to remove ${component} from the building process" - fi - done - - eautoreconf -} - -src_configure() { - use test && append-cxxflags -O0 -DDEBUG -DUNIT_TEST - - econf \ - $(use_enable static-libs static) \ - $(use_with gpm) \ - $(use_with test unit-test) -} - -src_install() { - emake DESTDIR="${ED}" PACKAGE="${PF}" install - dodoc CODE_OF_CONDUCT.md Contributing.md SECURITY.md - - if use examples; then - local examples="/usr/share/doc/${PF}/examples" - docompress -x "${examples}" - - for example in examples/.libs/*; do - example="${example#examples/.libs/}" - - local install_dir="${examples}/${example}" - - insinto "${install_dir}" - doins "examples/${example}.cpp" - exeinto "${install_dir}" - doexe "examples/${example}" - done - fi - - find "${ED}" -name "*.la" -delete || die -} diff --git a/dev-cpp/finalcut/finalcut-9999.ebuild b/dev-cpp/finalcut/finalcut-9999.ebuild index f7f4adbc5..9ad7ecdd3 100644 --- a/dev-cpp/finalcut/finalcut-9999.ebuild +++ b/dev-cpp/finalcut/finalcut-9999.ebuild @@ -17,8 +17,8 @@ else fi LICENSE="LGPL-3+" -SLOT="0/0.9.0" -IUSE="doc examples +gpm static-libs test" +SLOT="0/${PV}" +IUSE="doc examples +gpm test" REQUIRED_USE="test? ( !examples )" RESTRICT="!test? ( test )" @@ -36,11 +36,21 @@ BDEPEND=" RDEPEND="${DEPEND}" +DOCS=( + AUTHORS + ChangeLog + CODE_OF_CONDUCT.md + Contributing.md + SECURITY.md +) + src_prepare() { default [[ "${PV}" = 9999 ]] || eapply "${FILESDIR}/${P}-fix-tests.ebuild" + sed -i "/doc_DATA/d" Makefile.am || die + sed -i "/AM_CPPFLAGS/ s/-Werror//" {examples,final,test}/Makefile.am \ || die 'Failed to remove `-Werror` from `CPPFLAGS`' @@ -58,14 +68,16 @@ src_configure() { use test && append-cxxflags -O0 -DDEBUG -DUNIT_TEST econf \ - $(use_enable static-libs static) \ $(use_with gpm) \ $(use_with test unit-test) } src_install() { + einstalldocs + emake DESTDIR="${ED}" PACKAGE="${PF}" install - dodoc CODE_OF_CONDUCT.md Contributing.md SECURITY.md + + use doc || dodoc doc/first-steps* if use examples; then local examples="/usr/share/doc/${PF}/examples" -- cgit v1.2.3-65-gdbad