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

(-)file_not_specified_in_diff (-13 / +7 lines)
Line  Link Here
0
-- /usr/portage/sys-libs/ncurses/ncurses-5.7-r3.ebuild
0
++ ncurses-5.7-r3.ebuild
Lines 15-21 SRC_URI="mirror://gnu/ncurses/${MY_P}.ta Link Here
15
LICENSE="MIT"
15
LICENSE="MIT"
16
SLOT="5"
16
SLOT="5"
17
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
17
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
18
IUSE="ada +cxx debug doc gpm minimal profile trace unicode"
18
IUSE="ada +cxx debug doc gpm minimal profile static-libs trace unicode"
19
19
20
DEPEND="gpm? ( sys-libs/gpm )"
20
DEPEND="gpm? ( sys-libs/gpm )"
21
#	berkdb? ( sys-libs/db )"
21
#	berkdb? ( sys-libs/db )"
Lines 51-57 src_compile() { Link Here
51
		CXXFLAGS=${BUILD_CXXFLAGS} \
51
		CXXFLAGS=${BUILD_CXXFLAGS} \
52
		CPPFLAGS=${BUILD_CPPFLAGS} \
52
		CPPFLAGS=${BUILD_CPPFLAGS} \
53
		LDFLAGS="${BUILD_LDFLAGS} -static" \
53
		LDFLAGS="${BUILD_LDFLAGS} -static" \
54
		do_compile cross --without-shared
54
		do_compile cross --without-shared --with-normal
55
	fi
55
	fi
56
56
57
	make_flags=""
57
	make_flags=""
Lines 80-88 do_compile() { Link Here
80
	# src_install() ...
80
	# src_install() ...
81
#		$(use_with berkdb hashed-db)
81
#		$(use_with berkdb hashed-db)
82
	econf \
82
	econf \
83
		--libdir="/$(get_libdir)" \
84
		--with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo" \
83
		--with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo" \
85
		--with-shared \
84
		--with-shared \
85
		$(use_with static-libs normal) \
86
		--without-hashed-db \
86
		--without-hashed-db \
87
		$(use_with ada) \
87
		$(use_with ada) \
88
		$(use_with cxx) \
88
		$(use_with cxx) \
Lines 129-143 src_install() { Link Here
129
		emake DESTDIR="${D}" install || die "make widec install failed"
129
		emake DESTDIR="${D}" install || die "make widec install failed"
130
	fi
130
	fi
131
131
132
	# Move static and extraneous ncurses libraries out of /lib
132
	# Move libncurses{,w} into /lib
133
	dodir /usr/$(get_libdir)
133
	gen_usr_ldscript -a ncurses
134
	cd "${D}"/$(get_libdir)
134
	use unicode && gen_usr_ldscript -a ncursesw
135
	mv lib{form,menu,panel}.so* *.a "${D}"/usr/$(get_libdir)/
136
	gen_usr_ldscript lib{,n}curses.so
137
	if use unicode ; then
138
		mv lib{form,menu,panel}w.so* "${D}"/usr/$(get_libdir)/
139
		gen_usr_ldscript libncursesw.so
140
	fi
141
135
142
#	if ! use berkdb ; then
136
#	if ! use berkdb ; then
143
		# We need the basic terminfo files in /etc, bug #37026
137
		# We need the basic terminfo files in /etc, bug #37026

Return to bug 324999