Skip to content

Commit

Permalink
dev-cpp/finalcut: revbump
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
beatussum committed Aug 6, 2024
1 parent 53cd361 commit 5866f0a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi

LICENSE="LGPL-3+"
SLOT="0/${PV}"
IUSE="doc examples +gpm static-libs test"
IUSE="doc examples +gpm test"
REQUIRED_USE="test? ( !examples )"
RESTRICT="!test? ( test )"

Expand All @@ -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`'

Expand All @@ -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"
Expand Down
20 changes: 16 additions & 4 deletions dev-cpp/finalcut/finalcut-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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 )"

Expand All @@ -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`'

Expand All @@ -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"
Expand Down

0 comments on commit 5866f0a

Please sign in to comment.