Skip to content

Commit

Permalink
app-cdr/cdw: Fix building against sys-libs/ncurses[tinfo]
Browse files Browse the repository at this point in the history
Fixes: https://bugs.gentoo.org/672394
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <[email protected]>
  • Loading branch information
Jeroen Roovers committed Dec 2, 2018
1 parent bac2cef commit ac12153
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 17 deletions.
25 changes: 16 additions & 9 deletions app-cdr/cdw/cdw-0.8.0.ebuild
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5
inherit eutils
EAPI=6
inherit toolchain-funcs

DESCRIPTION="An ncurses based console frontend for cdrtools and dvd+rw-tools"
HOMEPAGE="http://cdw.sourceforge.net"
Expand All @@ -11,17 +11,24 @@ SRC_URI="mirror://sourceforge/cdw/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE=""

DEPEND="virtual/cdrtools
RDEPEND="
virtual/cdrtools
app-cdr/dvd+rw-tools
dev-libs/libburn
dev-libs/libcdio[-minimal]
sys-libs/ncurses[unicode]"
RDEPEND=${DEPEND}
sys-libs/ncurses[unicode]
"
DEPEND="
${RDEPEND}
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/${P}-uclibc.patch
)

src_prepare() {
epatch "${FILESDIR}"/${P}-uclibc.patch
src_configure() {
econf LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses )"
}

src_install() {
Expand Down
24 changes: 16 additions & 8 deletions app-cdr/cdw/cdw-9999.ebuild
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5
EAPI=6
ECVS_SERVER="cdw.cvs.sourceforge.net:/cvsroot/cdw"
ECVS_MODULE="cdw"
ECVS_TOPDIR="${DISTDIR}/cvs-src/${ECVS_MODULE}"

inherit autotools eutils cvs
inherit autotools cvs toolchain-funcs

MY_P=${PN}_${PV}
DESCRIPTION="An ncurses based console frontend for cdrtools and dvd+rw-tools"
Expand All @@ -15,21 +15,29 @@ HOMEPAGE="http://cdw.sourceforge.net"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""

DEPEND="virtual/cdrtools
RDEPEND="
virtual/cdrtools
app-cdr/dvd+rw-tools
dev-libs/libburn
dev-libs/libcdio[-minimal]
sys-libs/ncurses[unicode]"
RDEPEND=${DEPEND}

sys-libs/ncurses[unicode]
"
DEPEND="
${RDEPEND}
virtual/pkgconfig
"
S=${WORKDIR}/${ECVS_MODULE}

src_prepare() {
default
eautoreconf
}

src_configure() {
econf LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses )"
}

src_install() {
DOCS="AUTHORS ChangeLog NEWS README THANKS cdw.conf" \
default
Expand Down

0 comments on commit ac12153

Please sign in to comment.