Summary: | app-i18n/unicode-data should not depend on Debian sources | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Thomas J. Moore <darktjm> |
Component: | Current packages | Assignee: | Gentoo Fonts Team <fonts> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | Keywords: | EBUILD, PATCH |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
replacement ebuild for 6.1.0
new ebuild for 6.2.0 |
Created attachment 331356 [details]
new ebuild for 6.2.0
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 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 -} [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 |
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.