summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2012-10-27 14:58:58 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2012-10-27 14:58:58 +0000
commit2e26587a83656f8ddde204c6ada6099f26543631 (patch)
tree964358559352a1274ecf05c4a1b644a49d801f87 /dev-libs/icu
parentstable arm ppc ppc64, bug #439162 (diff)
downloadhistorical-2e26587a83656f8ddde204c6ada6099f26543631.tar.gz
historical-2e26587a83656f8ddde204c6ada6099f26543631.tar.bz2
historical-2e26587a83656f8ddde204c6ada6099f26543631.zip
Store -std=gnu++11 flag in CXXFLAGS in icu-config and icu-*.pc files for API consumers, if this flag is supported and required. Ebuild by Arfrever
Package-Manager: portage-2.1.11.30/cvs/Linux x86_64 Manifest-Sign-Key: 0xB4AFF2C2
Diffstat (limited to 'dev-libs/icu')
-rw-r--r--dev-libs/icu/ChangeLog8
-rw-r--r--dev-libs/icu/Manifest19
-rw-r--r--dev-libs/icu/icu-50_rc-r1.ebuild105
3 files changed, 127 insertions, 5 deletions
diff --git a/dev-libs/icu/ChangeLog b/dev-libs/icu/ChangeLog
index 31c5d7a21577..e3842aaadf1e 100644
--- a/dev-libs/icu/ChangeLog
+++ b/dev-libs/icu/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/icu
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/icu/ChangeLog,v 1.209 2012/10/25 18:53:59 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/icu/ChangeLog,v 1.210 2012/10/27 14:58:57 hwoarang Exp $
+
+*icu-50_rc-r1 (27 Oct 2012)
+
+ 27 Oct 2012; Markos Chandras <hwoarang@gentoo.org> +icu-50_rc-r1.ebuild:
+ Store -std=gnu++11 flag in CXXFLAGS in icu-config and icu-*.pc files for API
+ consumers, if this flag is supported and required. Ebuild by Arfrever.
*icu-50_rc (25 Oct 2012)
diff --git a/dev-libs/icu/Manifest b/dev-libs/icu/Manifest
index 37b1405e58ca..594a9c75931e 100644
--- a/dev-libs/icu/Manifest
+++ b/dev-libs/icu/Manifest
@@ -9,13 +9,24 @@ DIST icu4c-49_1_2-src.tgz 19010646 SHA256 cce83cc88a2ff79d65c05426facbf30530bbe1
DIST icu4c-50_rc-docs.zip 6125408 SHA256 7e09e7481bfb12e3a84ebf4bf46afad986f8fae49cdef79deb5ae95fdc458800 SHA512 c367921082346812c0cae94d2f805e83814d68ee46256e736d5225ea5c71e1625b15f4b25064482750b2432d591123439c0ca00e929f5dae1895ba971db45d0e WHIRLPOOL 50ee21358efc355269abd9d173e0c9b203e4a33174e9a6956c3121128a12113bf09aba832c756f2c4c011e517fb3ce31563996a9286306bbcac87f4936cfafe7
DIST icu4c-50_rc-src.tgz 19637660 SHA256 1336b0da4e862fc9b5d40c93c1a9be61aff635d9b743b5138176619409e6bb0b SHA512 be6dd349134a13848e4ff005c045db456a365212c558f38e0f371aa376e69f1044ff010308923c9542ec2ba3edba5521907e2a0dbb9e53f65d4dbe340aa2a019 WHIRLPOOL e71f3d8da84ff8b0d31df6b3b11cb065e366e9a4b8387411c75d4114c31533682867811b178c19c78c2670818b733db9489aff43ee4b377031aca6687a26359a
EBUILD icu-49.1.2.ebuild 2303 SHA256 22b5fcfce6d5f8708fd606622648923b5146ac20d7e802af7c09aa8b2b9f6721 SHA512 02dcb2f28b89d09373518a86ec922831f52954ebe1846ca235e57db6cda3201df126ee5a13cb6597d0ffec762232d3ee33a360cb7f958a5de56a9823a729c965 WHIRLPOOL 54be9b6e9c912e7c193be83c2f20b3dd0f98b3d54961733a3622c7c314d51ae157f542c9ff996d46eeeba1b10f1167fc996e82576af2f8ebf242f6b9e27617da
+EBUILD icu-50_rc-r1.ebuild 3129 SHA256 280680917df7143b92e1c9512274163ddc678a78c87180b2631ae34dbd53b913 SHA512 b60e278c7b0c429336968e4290f7fe65d3521cf087a806558a873decc5300d599e74d73468b71be4e479a7c10ddd0d8d6f9d4a19d75bfe79970b9f127d506f76 WHIRLPOOL ed5ef2555c0057678777e0bab0f2d4a85b0a5b2568475019326c1104bbd3bb15d78d4bc66c1866d81a832faf76f5557ff42d6db75a875af57070f54350aecaed
EBUILD icu-50_rc.ebuild 2541 SHA256 028efdfd20aef5b8641d92366903790bfde3fdcc0251ebd53170c96049857932 SHA512 b52ba9f63fcba4c0072a3657f9fd5e251aadeb091866a411471a505d33d2cfbfd4fd033756594f8e230609487c7085483fcec4ff053b925ee3bfd25960e2c923 WHIRLPOOL b9663a4b0cb6068b2ca4588f7718d2702144cc475d957bd2cafd2e763318819c9a6e4b1436c1d1d4d1e419dcb649153979cbce9df441cb003d13ee41a62ffdf9
-MISC ChangeLog 26169 SHA256 0347873ad167d2fd7b888e10c9cb88479b47d829f7296718f79c6699561e41c6 SHA512 1da113f7d6c0e7c1a68b3792f0921282f13b63c849a0e4c056774f9589a2575e4f72edc1e12077cdaf69be8f6ad90dc3c1ac8233d3b5ef5296e3cd87a0025b30 WHIRLPOOL 959bd011f31420de1bbefefb8c941a6abb9c75c44eb5b1dca1951a61bcfbeafaa0c6ab230f2e0a124cbfa673e2d38adba6d2cc448295f440df4127657af3d665
+MISC ChangeLog 26427 SHA256 a58a92d02f94732243cd7ba8c7cd784b543501a881ae76ae010b2d8e474af8d5 SHA512 6cad2ee08000753f57cea0fef71ed75256244916c11fc3fed3272baae7419844c7bdb24c951bf247d47ceb04f235f2cc27cac8046f2708d724bbee9cb3cc161a WHIRLPOOL 3bce7a932721764ff12a0825b5a08c939991bc796cce202842b647a20fdff1150a4dea443203e104eea5d38df94370165a36f8397398d09dc7f17df296c4616a
MISC metadata.xml 294 SHA256 501a5b0d4dc6215cd3302bdbdd6aa8e8037036996fadbe48f20acd2e037a31d9 SHA512 2ee4ee252b4391df3ee227351028eeea0309ff928f58d67d5dd2b807a1fca714be7dd5b892aea9b8061263d0c6d3729e114fb8b0b0c7f3322cef49be0deae2ea WHIRLPOOL 555ce5514834036d90b287c4ffea668f534ffae1a060430934b8278d9e23f92a260fd1af0baf083af1fd8cd9b786623cc1a0e26ff08f1eff6fa52891f64f104b
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iF4EAREIAAYFAlCJisgACgkQC77qH+pIQ6SvxwD+K0Zcl90BaWqJePAEkTlsacKW
-67+VK2AoWVsFXaO3tWoBAMo2oNL8EF6p0v1jMJgHlneeoz3+Ltfp+6TKswTGJbtT
-=6GKB
+iQIcBAEBCAAGBQJQi/ayAAoJEPqDWhW0r/LC7xIP/1IHyhz6PfaixUvxLLxTCdYe
+2qgnPVbOd5xR4YoE7Fx9v91XnSdGXeB8khwTdwrjZ2VRMOsDeGNeSzdE5rnvcR57
+lP5LFFj70Ls0OiUYokmwV1wGBu474n6lIx0edcNiOqt7HrMrwefAqIJeOBa4xx+l
+LtIy5b7um3+jdV5IIKRNKweUFXGMm3GMHtn93byprY6NKaBw/Fg+GLcDVWghOSax
+xwAJY3/WVNuqbJOw7AFlR41eiQ743DUlI9+7bvh4wPYTHU4grqzsPuwJV6Y4WiJi
+WUYdo6skkGmB3YKMa6mVwCGvfT6WEV8qCUj6Ef7IdlbVRsyCkUcVrw/fNw4NY6Hi
+n9nrwTuULRcpdc0Jos4u3z1wN0nRDOQV1FNMkLMCGEfdNMmvozW/Draa3Id8YA1I
+WAkNS7XcokKzD9EmpjlMBQP3YHlIMn1rBw4xb9dwGFNvGOm1UafhJE8JbXPml/0P
+oZwqLzzHsrBr8jt12xCVwmZmvbN6PtH3fwpMRuEuY8Qle2KEElqu+bLSI+myp27I
+zs6sXKl/xLjkC3fmWFTLdR1MXlOBOapNDLRF4aIfi7xBwzfAEGpWldQ63DaCbKv1
+g/C1XJ0TtFPLl/wWPhzxXK8M+RFh7vJq22SVnarKzz3uSU+1bLxDY9JaTfV6lwPF
+SZlcNpmigkoB1T81RsJB
+=pue3
-----END PGP SIGNATURE-----
diff --git a/dev-libs/icu/icu-50_rc-r1.ebuild b/dev-libs/icu/icu-50_rc-r1.ebuild
new file mode 100644
index 000000000000..5eb4c51f325e
--- /dev/null
+++ b/dev-libs/icu/icu-50_rc-r1.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/icu/icu-50_rc-r1.ebuild,v 1.1 2012/10/27 14:58:57 hwoarang Exp $
+
+EAPI="5"
+
+inherit eutils toolchain-funcs versionator
+
+MAJOR_VERSION="$(get_version_component_range 1)"
+if [[ "${PV}" =~ ^[[:digit:]]+_rc[[:digit:]]*$ ]]; then
+ MINOR_VERSION="1"
+else
+ MINOR_VERSION="$(get_version_component_range 2)"
+fi
+
+DESCRIPTION="International Components for Unicode"
+HOMEPAGE="http://www.icu-project.org/"
+
+BASE_URI="http://download.icu-project.org/files/icu4c/${PV/_/}"
+SRC_ARCHIVE="icu4c-${PV//./_}-src.tgz"
+DOCS_ARCHIVE="icu4c-${PV//./_}-docs.zip"
+
+SRC_URI="${BASE_URI}/${SRC_ARCHIVE}
+ doc? ( ${BASE_URI}/${DOCS_ARCHIVE} )"
+
+LICENSE="BSD"
+SLOT="0/50"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="debug doc examples static-libs"
+
+DEPEND="doc? ( app-arch/unzip )"
+RDEPEND=""
+
+S="${WORKDIR}/${PN}/source"
+
+QA_DT_NEEDED="/usr/lib.*/libicudata\.so\.${MAJOR_VERSION}\.${MINOR_VERSION}.*"
+QA_FLAGS_IGNORED="/usr/lib.*/libicudata\.so\.${MAJOR_VERSION}\.${MINOR_VERSION}.*"
+
+src_unpack() {
+ unpack "${SRC_ARCHIVE}"
+ if use doc; then
+ mkdir docs
+ pushd docs > /dev/null
+ unpack "${DOCS_ARCHIVE}"
+ popd > /dev/null
+ fi
+}
+
+src_prepare() {
+ sed -e "s/#CXXFLAGS =/CXXFLAGS =/" -i config/icu.pc.in || die "sed failed"
+
+ # Do not hardcode flags in icu-config and icu-*.pc files.
+ # https://ssl.icu-project.org/trac/ticket/6102
+ local variable
+ for variable in CFLAGS CPPFLAGS CXXFLAGS FFLAGS LDFLAGS; do
+ sed -e "/^${variable} =.*/s: *@${variable}@\( *$\)\?::" -i config/icu.pc.in config/Makefile.inc.in || die "sed failed"
+ done
+
+ # Store -std=gnu++11 flag in CXXFLAGS in icu-config and icu-*.pc files for API consumers, if this flag is supported and required.
+ if $(tc-getCXX) -c -std=gnu++11 -x c++ - -o /dev/null <<< "char16_t string[] = u\"...\";" &> /dev/null && ! $(tc-getCXX) -c -x c++ - -o /dev/null <<< "char16_t string[] = u\"...\";" &> /dev/null; then
+ sed -e "/^CXXFLAGS =/s/ *$/ -std=gnu++11/" -i config/icu.pc.in config/Makefile.inc.in || die "sed failed"
+ fi
+
+ sed -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" -i common/unicode/uconfig.h
+
+ epatch "${FILESDIR}/${PN}-4.8.1-fix_binformat_fonts.patch"
+ epatch "${FILESDIR}/${PN}-4.8.1.1-fix_ltr.patch"
+}
+
+src_configure() {
+ econf \
+ --disable-renaming \
+ $(use_enable debug) \
+ $(use_enable examples samples) \
+ $(use_enable static-libs static)
+}
+
+src_compile() {
+ emake VERBOSE="1"
+}
+
+src_test() {
+ # INTLTEST_OPTS: intltest options
+ # -e: Exhaustive testing
+ # -l: Reporting of memory leaks
+ # -v: Increased verbosity
+ # IOTEST_OPTS: iotest options
+ # -e: Exhaustive testing
+ # -v: Increased verbosity
+ # CINTLTST_OPTS: cintltst options
+ # -e: Exhaustive testing
+ # -v: Increased verbosity
+ emake -j1 VERBOSE="1" check
+}
+
+src_install() {
+ emake DESTDIR="${D}" VERBOSE="1" install
+
+ dohtml ../readme.html
+ dodoc ../unicode-license.txt
+ if use doc; then
+ insinto /usr/share/doc/${PF}/html/api
+ doins -r "${WORKDIR}/docs/"*
+ fi
+}