Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 690224
Collapse All | Expand All

(-)a/net-news/snownews/snownews-1.6.10.ebuild (-6 / +6 lines)
Lines 11-21 SRC_URI="https://github.com/kouya/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" Link Here
11
LICENSE="GPL-3"
11
LICENSE="GPL-3"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
13
KEYWORDS="amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
14
IUSE="unicode"
15
14
16
COMMON_DEPEND="
15
COMMON_DEPEND="
17
	>=dev-libs/libxml2-2.5.6
16
	>=dev-libs/libxml2-2.5.6
18
	>=sys-libs/ncurses-5.3:0=[unicode?]
17
	>=sys-libs/ncurses-5.3:0=
19
"
18
"
20
RDEPEND="
19
RDEPEND="
21
	${COMMON_DEPEND}
20
	${COMMON_DEPEND}
Lines 31-44 BDEPEND="virtual/pkgconfig" Link Here
31
30
32
src_prepare() {
31
src_prepare() {
33
	default
32
	default
34
	tc-export PKG_CONFIG
33
	sed -i 's|-lncurses|$(shell $(PKG_CONFIG) --libs ncurses)|' Config.mk.in || die
35
	sed -i 's|-lncurses|`\\$(PKG_CONFIG) --libs '"$(usex unicode ncursesw ncurses)"'`|' configure || die
34
	sed -i '/INSTALLEXE/s|-s||g' Config.mk.in || die
36
	sed -i 's|$(INSTALL) -s snownews|$(INSTALL) snownews|' Makefile || die
35
	sed -i '/LDFLAGS/s|-s||g' Config.mk.in || die
36
	mkdir .o || die
37
}
37
}
38
38
39
src_configure() {
39
src_configure() {
40
	tc-export PKG_CONFIG
40
	tc-export PKG_CONFIG
41
	# perl script, not autotools based
41
	# not autotools based
42
	./configure --prefix="${D}${EPREFIX}/usr" || die
42
	./configure --prefix="${D}${EPREFIX}/usr" || die
43
}
43
}
44
44

Return to bug 690224