Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gettext/
Date: Mon, 14 Jun 2021 09:20:06
Message-Id: 1623662364.a55c708f1468a81905c362a82b5f6c851bf01dce.soap@gentoo
1 commit: a55c708f1468a81905c362a82b5f6c851bf01dce
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 14 09:19:24 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 14 09:19:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a55c708f
7
8 sys-devel/gettext: drop 0.21
9
10 Bug: https://bugs.gentoo.org/769998
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 sys-devel/gettext/gettext-0.21.ebuild | 156 ----------------------------------
14 1 file changed, 156 deletions(-)
15
16 diff --git a/sys-devel/gettext/gettext-0.21.ebuild b/sys-devel/gettext/gettext-0.21.ebuild
17 deleted file mode 100644
18 index 6cd141222a4..00000000000
19 --- a/sys-devel/gettext/gettext-0.21.ebuild
20 +++ /dev/null
21 @@ -1,156 +0,0 @@
22 -# Copyright 1999-2021 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -# Note: Keep version bumps in sync with dev-libs/libintl.
26 -
27 -EAPI=7
28 -
29 -inherit mono-env libtool java-pkg-opt-2 multilib-minimal
30 -
31 -DESCRIPTION="GNU locale utilities"
32 -HOMEPAGE="https://www.gnu.org/software/gettext/"
33 -if [[ "${PV}" == *_rc* ]] ; then
34 - SRC_URI="https://alpha.gnu.org/gnu/${PN}/${P/_/-}.tar.bz2"
35 - S="${WORKDIR}/${P/_/-}"
36 -else
37 - SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
38 - 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 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
39 -fi
40 -# Only libasprintf is under the LGPL (and libintl is in a sep package),
41 -# so put that license behind USE=cxx.
42 -LICENSE="GPL-3+ cxx? ( LGPL-2.1+ )"
43 -SLOT="0"
44 -IUSE="acl cvs +cxx doc emacs git java ncurses nls openmp static-libs"
45 -
46 -# only runtime goes multilib
47 -# Note: The version of libxml2 corresponds to the version bundled via gnulib.
48 -# If the build detects too old of a system version, it will end up falling back
49 -# to the bundled copy. #596918
50 -# Note: expat lacks a subslot because it is dynamically loaded at runtime. We
51 -# would depend on older subslots if they were available (based on the ABIs that
52 -# are explicitly handled), but expat doesn't currently use subslots.
53 -DEPEND=">=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
54 - >=virtual/libintl-0-r2[${MULTILIB_USEDEP}]
55 - >=dev-libs/libxml2-2.9.3:=
56 - dev-libs/expat
57 - acl? ( virtual/acl )
58 - ncurses? ( sys-libs/ncurses:0= )
59 - java? ( >=virtual/jdk-1.4:= )"
60 -RDEPEND="${DEPEND}
61 - !git? ( cvs? ( dev-vcs/cvs ) )
62 - git? ( dev-vcs/git )
63 - java? ( >=virtual/jre-1.4 )"
64 -BDEPEND="
65 - git? ( dev-vcs/git )
66 -"
67 -PDEPEND="emacs? ( app-emacs/po-mode )"
68 -
69 -MULTILIB_WRAPPED_HEADERS=(
70 - # only installed for native ABI
71 - /usr/include/gettext-po.h
72 -
73 - /usr/include/autosprintf.h
74 - /usr/include/textstyle.h
75 - /usr/include/textstyle/stdbool.h
76 - /usr/include/textstyle/version.h
77 - /usr/include/textstyle/woe32dll.h
78 -)
79 -
80 -PATCHES=(
81 - "${FILESDIR}"/${PN}-0.19.7-disable-libintl.patch #564168
82 - "${FILESDIR}"/${PN}-0.20-parallel_install.patch #685530
83 - "${FILESDIR}"/${PN}-0.21_rc1-avoid_eautomake.patch
84 -)
85 -
86 -QA_SONAME_NO_SYMLINK=".*/preloadable_libintl.so"
87 -
88 -pkg_setup() {
89 - mono-env_pkg_setup
90 - java-pkg-opt-2_pkg_setup
91 -}
92 -
93 -src_prepare() {
94 - java-pkg-opt-2_src_prepare
95 -
96 - default
97 -
98 - elibtoolize
99 -}
100 -
101 -multilib_src_configure() {
102 - local myconf=(
103 - # switches common to runtime and top-level
104 - --cache-file="${BUILD_DIR}"/config.cache
105 - #--docdir="\$(datarootdir)/doc/${PF}"
106 -
107 - # Emacs support is now in a separate package
108 - --without-emacs
109 - --without-lispdir
110 - # glib depends on us so avoid circular deps
111 - --with-included-glib
112 - # libcroco depends on glib which ... ^^^
113 - --with-included-libcroco
114 - # this will _disable_ libunistring (since it is not bundled),
115 - # see bug #326477
116 - --with-included-libunistring
117 - # Never build libintl since it's in dev-libs/libintl now.
118 - --without-included-gettext
119 - # Never build bundled copy of libxml2.
120 - --without-included-libxml
121 -
122 - $(use_enable acl)
123 - $(use_enable cxx c++)
124 - $(use_enable cxx libasprintf)
125 - $(use_with git)
126 - $(usex git --without-cvs $(use_with cvs))
127 - $(use_enable java)
128 - $(use_enable ncurses curses)
129 - $(use_enable nls)
130 - $(use_enable openmp)
131 - $(use_enable static-libs static)
132 - )
133 -
134 - local ECONF_SOURCE="${S}"
135 - if ! multilib_is_native_abi ; then
136 - # for non-native ABIs, we build runtime only
137 - ECONF_SOURCE+=/gettext-runtime
138 - fi
139 -
140 - econf "${myconf[@]}"
141 -}
142 -
143 -multilib_src_install() {
144 - emake DESTDIR="${D}" install
145 -
146 - if multilib_is_native_abi ; then
147 - dosym msgfmt /usr/bin/gmsgfmt #43435
148 - dobin gettext-tools/misc/gettextize
149 - fi
150 -}
151 -
152 -multilib_src_install_all() {
153 - find "${ED}" -type f -name "*.la" -delete || die
154 -
155 - if use java ; then
156 - java-pkg_dojar "${ED}"/usr/share/${PN}/*.jar
157 - rm "${ED}"/usr/share/${PN}/*.jar || die
158 - rm "${ED}"/usr/share/${PN}/*.class || die
159 - if use doc ; then
160 - java-pkg_dojavadoc "${ED}"/usr/share/doc/${PF}/html/javadoc2
161 - fi
162 - fi
163 -
164 - dodoc AUTHORS ChangeLog NEWS README THANKS
165 -
166 - if use doc ; then
167 - docinto html
168 - dodoc "${ED}"/usr/share/doc/${PF}/*.html
169 - else
170 - rm -rf "${ED}"/usr/share/doc/${PF}/{csharpdoc,examples,javadoc2,javadoc1}
171 - fi
172 - rm "${ED}"/usr/share/doc/${PF}/*.html || die
173 -}
174 -
175 -pkg_preinst() {
176 - java-pkg-opt-2_pkg_preinst
177 -}