1 |
commit: 9003b0a3fbb2005567c74cdb2cee0ba075baaf1c |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 26 20:53:38 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 26 20:56:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9003b0a3 |
7 |
|
8 |
sys-libs/ncurses: sync with ::prefix |
9 |
|
10 |
Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
sys-libs/ncurses/ncurses-6.2-r1.ebuild | 17 +++++++++++++---- |
14 |
1 file changed, 13 insertions(+), 4 deletions(-) |
15 |
|
16 |
diff --git a/sys-libs/ncurses/ncurses-6.2-r1.ebuild b/sys-libs/ncurses/ncurses-6.2-r1.ebuild |
17 |
index 968abbe3853..d7dc0d518f1 100644 |
18 |
--- a/sys-libs/ncurses/ncurses-6.2-r1.ebuild |
19 |
+++ b/sys-libs/ncurses/ncurses-6.2-r1.ebuild |
20 |
@@ -19,7 +19,7 @@ fi |
21 |
LICENSE="MIT" |
22 |
# The subslot reflects the SONAME. |
23 |
SLOT="0/6" |
24 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-macos" |
25 |
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
26 |
IUSE="ada +cxx debug doc gpm minimal profile static-libs test threads tinfo trace unicode" |
27 |
RESTRICT="!test? ( test )" |
28 |
|
29 |
@@ -79,7 +79,7 @@ src_configure() { |
30 |
local dbuildflags="-Wl,-rpath,${WORKDIR}/lib" |
31 |
case ${CHOST} in |
32 |
*-darwin*) dbuildflags= ;; |
33 |
- *-aix*) dbuildflags= ;; |
34 |
+ *-solaris*) dbuildflags="-Wl,-R,${WORKDIR}/lib" ;; |
35 |
esac |
36 |
echo "int main() {}" | \ |
37 |
$(tc-getCC) -o x -x c - ${lbuildflags} -pipe >& /dev/null \ |
38 |
@@ -195,8 +195,17 @@ do_configure() { |
39 |
src_compile() { |
40 |
# See comments in src_configure. |
41 |
if ! has_version -b "~sys-libs/${P}:0" ; then |
42 |
- BUILD_DIR="${WORKDIR}" \ |
43 |
- do_compile cross -C progs tic |
44 |
+ # We could possibly merge these two branches but opting to be |
45 |
+ # conservative when merging some of the Prefix changes. |
46 |
+ |
47 |
+ if [[ ${CHOST} == *-cygwin* ]] && ! multilib_is_native_abi ; then |
48 |
+ # We make 'tic$(x)' here, for Cygwin having x=".exe". |
49 |
+ BUILD_DIR="${WORKDIR}" \ |
50 |
+ do_compile cross -C progs all PROGS='tic$(x)' |
51 |
+ else |
52 |
+ BUILD_DIR="${WORKDIR}" \ |
53 |
+ do_compile cross -C progs tic |
54 |
+ fi |
55 |
fi |
56 |
|
57 |
multilib-minimal_src_compile |