Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 445878 - app-i18n/unicode-data should not depend on Debian sources
Summary: app-i18n/unicode-data should not depend on Debian sources
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2012-12-03 23:45 UTC by Thomas J. Moore
Modified: 2016-07-31 11:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
replacement ebuild for 6.1.0 (unicode-data-6.1.0.ebuild,885 bytes, text/plain)
2012-12-03 23:45 UTC, Thomas J. Moore
Details
new ebuild for 6.2.0 (unicode-data-6.2.0.ebuild,886 bytes, text/plain)
2012-12-03 23:46 UTC, Thomas J. Moore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas J. Moore 2012-12-03 23:45:07 UTC
Created attachment 331354 [details]
replacement ebuild for 6.1.0

The current app-i18n/unicode-data ebuild retrieves the Debian dpkg as its source.  It should retrieve the data directly from the Unicode Consortium instead.  I have attached an ebuild which does that.  While I was at it, I made the unihan optional, and added documentation.  To be added to metadata.xml:
  flag han: Include Unicode Han Database

If the documentation is removed, upgrading is renaming the ebuild.  Otherwise, the doc version numbers need to be manually bumped (usually by 2).  In fact, the 6.0.0 ebuild can be replaced as well, by copying & dropping the doc versions by 2.
I have also attached the 6.2.0 ebuild as an example.  Note that 6.2.0 is the current version as of this writing.
Comment 1 Thomas J. Moore 2012-12-03 23:46:02 UTC
Created attachment 331356 [details]
new ebuild for 6.2.0
Comment 2 Jeroen Roovers gentoo-dev 2012-12-04 15:37:33 UTC
Comment on attachment 331354 [details]
replacement ebuild for 6.1.0

--- unicode-data-6.1.0.ebuild   2012-11-04 13:20:24.000000000 +0100
+++ -   2012-12-04 16:37:19.356670705 +0100
@@ -1,29 +1,34 @@
 # Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/unicode-data/unicode-data-6.1.0.ebuild,v 1.1 2012/11/04 12:20:24 scarabeus Exp $
+# $Header$
 
 EAPI=5

+UCD_TR=8
+HAN_TR=11
+
 DESCRIPTION="Unicode data from unicode.org"
 HOMEPAGE="http://unicode.org/"
-SRC_URI="mirror://debian/pool/main/u/${PN}/${PN}_${PV}.orig.tar.gz"
+SRC_URI="http://unicode.org/Public/zipped/${PV}/UCD.zip -> UCD-${PV}.zip
+         han? ( http://unicode.org/Public/zipped/${PV}/Unihan.zip -> Unihan-${PV}.zip )
+        doc? (
+           http://unicode.org/reports/tr44/tr44-${UCD_TR}.html
+           han? ( http://unicode.org/reports/tr38/tr38-${HAN_TR}.html )
+         )"
 
 LICENSE="unicode"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
-IUSE=""
+IUSE="+han doc"
 
 DEPEND="app-arch/unzip"
 RDEPEND=""

-src_unpack() {
-       unpack ${A}
-       cd "${S}"
-       unpack ./*
-       rm *.zip
-}
+S=${WORKDIR}
 
 src_install() {
        insinto /usr/share/${PN}
-       doins -r "${S}"/*
+       doins -r *
+       use doc && dodoc ${DISTDIR}/tr44-${UCD_TR}.html
+       use doc && use han && dodoc ${DISTDIR}/tr38-${HAN_TR}.html
 }
Comment 3 Jeroen Roovers gentoo-dev 2012-12-04 15:39:01 UTC
Comment on attachment 331356 [details]
new ebuild for 6.2.0

--- unicode-data-6.1.0.ebuild   2012-12-04 16:38:22.172512141 +0100
+++ unicode-data-6.2.0.ebuild   2012-12-04 16:38:37.947843327 +0100
@@ -1,34 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header$
-
-EAPI=5
-
-UCD_TR=8
-HAN_TR=11
-
-DESCRIPTION="Unicode data from unicode.org"
-HOMEPAGE="http://unicode.org/"
-SRC_URI="http://unicode.org/Public/zipped/${PV}/UCD.zip -> UCD-${PV}.zip
-         han? ( http://unicode.org/Public/zipped/${PV}/Unihan.zip -> Unihan-${PV}.zip )
-        doc? (
-           http://unicode.org/reports/tr44/tr44-${UCD_TR}.html
-           han? ( http://unicode.org/reports/tr38/tr38-${HAN_TR}.html )
-         )"
-
-LICENSE="unicode"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
-IUSE="+han doc"
-
-DEPEND="app-arch/unzip"
-RDEPEND=""
-
-S=${WORKDIR}
-
-src_install() {
-       insinto /usr/share/${PN}
-       doins -r *
-       use doc && dodoc ${DISTDIR}/tr44-${UCD_TR}.html
-       use doc && use han && dodoc ${DISTDIR}/tr38-${HAN_TR}.html
-}
Comment 4 Pacho Ramos gentoo-dev 2016-07-31 11:42:46 UTC
[master 0fc822e] app-i18n/unicode-data: Version bump as needed by gucharmap (#582458)
 2 files changed, 34 insertions(+)
 create mode 100644 app-i18n/unicode-data/unicode-data-9.0.0.ebuild