mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-libs/libiconv-1.16: version bump
Closes: https://bugs.gentoo.org/767244 Package-Manager: Portage-3.0.18-prefix, Repoman-3.0.3 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST libiconv-1.15.tar.gz 5264188 BLAKE2B 2384dbf8549fa56e841b15b7e2698b83c0ee171cdff13aef48c60eae0bc4f5e7b2e937bc8d5eddf89fba11412d17bebd77bdda7060c177ce9dc9be00172c0c12 SHA512 1233fe3ca09341b53354fd4bfe342a7589181145a1232c9919583a8c9979636855839049f3406f253a9d9829908816bb71fd6d34dd544ba290d6f04251376b1a
|
||||
DIST libiconv-1.16.tar.gz 5166734 BLAKE2B 8e7f4d64d757db6c3ffa973c9cebcf20b34f9859a547dbba8cebe3a4865bda86f33c5be197951877c46eff5a7fc00b1b11474fb3baa036f08ac2faf97eca138c SHA512 365dac0b34b4255a0066e8033a8b3db4bdb94b9b57a9dca17ebf2d779139fe935caf51a465d17fd8ae229ec4b926f3f7025264f37243432075e5583925bb77b7
|
||||
|
||||
12
dev-libs/libiconv/files/libiconv-1.16-fix-link-install.patch
Normal file
12
dev-libs/libiconv/files/libiconv-1.16-fix-link-install.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
don't link against the libtool archive to avoid recording ${D} in RUNPATH
|
||||
|
||||
--- a/src/Makefile.in
|
||||
+++ b/src/Makefile.in
|
||||
@@ -113,6 +113,7 @@
|
||||
if [ ! -d $(DESTDIR)$(bindir) ] ; then $(mkinstalldirs) $(DESTDIR)$(bindir) ; fi
|
||||
case "@host_os@" in \
|
||||
hpux*) $(CC) $(LDFLAGS) $(CFLAGS) $(iconv_LDFLAGS) iconv.@OBJEXT@ ../srclib/libicrt.a -L$(DESTDIR)$(libdir) -liconv @LIBINTL@ $(OBJECTS_RES_@WOE32@) `if test -n '$(DESTDIR)'; then echo " -Wl,+b -Wl,$(libdir)"; fi` -o iconv$(EXEEXT);; \
|
||||
+ *) $(CC) $(LDFLAGS) $(CFLAGS) $(iconv_LDFLAGS) iconv.@OBJEXT@ ../srclib/libicrt.a -L$(DESTDIR)$(libdir) -liconv @LIBINTL@ $(OBJECTS_RES_@WOE32@) -o iconv$(EXEEXT);; \
|
||||
*) $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) $(iconv_LDFLAGS) iconv.@OBJEXT@ ../srclib/libicrt.a $(DESTDIR)$(libdir)/libiconv.la @LTLIBINTL@ $(OBJECTS_RES_@WOE32@) -o iconv$(EXEEXT);; \
|
||||
esac
|
||||
$(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) iconv$(EXEEXT) $(DESTDIR)$(bindir)/iconv$(EXEEXT)
|
||||
57
dev-libs/libiconv/libiconv-1.16.ebuild
Normal file
57
dev-libs/libiconv/libiconv-1.16.ebuild
Normal file
@@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit libtool multilib-minimal usr-ldscript
|
||||
|
||||
DESCRIPTION="GNU charset conversion library for libc which doesn't implement it"
|
||||
HOMEPAGE="https://www.gnu.org/software/libiconv/"
|
||||
SRC_URI="mirror://gnu/libiconv/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2+ GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||||
IUSE="prefix static-libs"
|
||||
|
||||
DEPEND="!sys-libs/glibc
|
||||
!sys-libs/musl
|
||||
!userland_GNU? ( !sys-apps/man-pages )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.15-no-gets.patch"
|
||||
"${FILESDIR}/${PN}-1.16-fix-link-install.patch"
|
||||
)
|
||||
|
||||
multilib_src_configure() {
|
||||
if use prefix ; then
|
||||
# In Prefix we want to have the same header declaration on every
|
||||
# platform, so make configure find that it should do
|
||||
# "const char * *inbuf"
|
||||
export am_cv_func_iconv=no
|
||||
fi
|
||||
# Disable NLS support because that creates a circular dependency
|
||||
# between libiconv and gettext
|
||||
ECONF_SOURCE="${S}" \
|
||||
econf \
|
||||
--docdir="\$(datarootdir)/doc/${PF}/html" \
|
||||
--disable-nls \
|
||||
--enable-shared \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
use static-libs || find "${ED}" -name 'lib*.la' -delete
|
||||
|
||||
# If we have a GNU userland, we probably have sys-apps/man-pages
|
||||
# installed, which means we want to rename our copies #503162.
|
||||
# The use of USELAND=GNU is kind of a hack though ...
|
||||
if use userland_GNU ; then
|
||||
cd "${ED}"/usr/share/man || die
|
||||
local f
|
||||
for f in man*/*.[0-9] ; do
|
||||
mv "${f}" "${f%/*}/${PN}-${f#*/}" || die
|
||||
done
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user