diff options
Diffstat (limited to 'media-gfx/opcion')
-rw-r--r-- | media-gfx/opcion/Manifest | 6 | ||||
-rw-r--r-- | media-gfx/opcion/files/opcion-1.1.1-fix-source.patch | 15 | ||||
-rw-r--r-- | media-gfx/opcion/metadata.xml | 11 | ||||
-rw-r--r-- | media-gfx/opcion/opcion-1.1.1-r2.ebuild | 57 |
4 files changed, 89 insertions, 0 deletions
diff --git a/media-gfx/opcion/Manifest b/media-gfx/opcion/Manifest new file mode 100644 index 000000000000..9f103fe30488 --- /dev/null +++ b/media-gfx/opcion/Manifest @@ -0,0 +1,6 @@ +AUX opcion-1.1.1-fix-source.patch 408 SHA256 a2bf5eadbb98f2fb43d8ac8ae5c2ea2ee91509c54f3516d9781f2fa9e3a5097a SHA512 3097cc8970296bf9d571c44ac9c07074c88e7a3b8800082dfcaf94c1daa0ddae8c56f7101c5052d8382ac554a725debbb7a3271fd0257ab195d63313133f18ae WHIRLPOOL 110214a6c81c793d352bc9ecfdd120eaf2f71bdf0935fbb118854b4272ed816c81721105c5264af2cf11b4075dc52723758f19de4cbdc40b80f1ca0eb23843fd +DIST Opcion_v1.1.1_src.zip 319793 SHA256 f1af9606c63e200d860d01c2f7bd241031b857928b939fb8044d27aabf83f298 SHA512 47b4729a54b4b76fdd5ece01f40e700f6c942df60a36956e08383aa24bb436e59b40df25d42d2d7c6b01633a92c7449a8c7f0acb9a9e63af76d1054373f51f14 WHIRLPOOL 9d7989e4678b69106bdde0c8ef06757ef7ea689e4ba046c78766ce4943c59707c693b2db344cd12d8d13c27f37aaab221a795c2440d2ff1c2a91574f9e2c2fa8 +EBUILD opcion-1.1.1-r2.ebuild 1344 SHA256 89c37f14da6e5ae42f3dcc37edcabaa285eaebe370d7e239b1283d9dac02b614 SHA512 b544dd18f346a5c7aa4cb278d593f5b82e3432a42682e5710e9c1f0f608e7e1c9ac78ef32ca1dea09f7e9f8aa08773121739877a5614740e3039c0308d90d9dc WHIRLPOOL 19a13c0805613c4edfe1af1975ab3d86f88539c718f3e290ae9271be3b6b147914dafba4f996e84d3db60c91b27da596cf6802b91028ec133deee16720ab9ee9 +MISC ChangeLog 2611 SHA256 2828c205f3e0ae4f3939acace86e8f2ee021299033d6e40a7de720d5ace7fa69 SHA512 a89e8943d22781fd5d565f6f31aa705bbe8b887107d6f0918385663c16b45256e25dca96b8fd3c36bd05dd015d02f8edf5b2d69771a3cb0862ed4e46815df608 WHIRLPOOL b22e7b916260bd5fcf69f7ddecbbf7ad604b36044bb65633862f0c02620c4484245de2e12c49f40b4194fccf1fc54d4d440b3b3076defefb453d5bb4e4af4609 +MISC ChangeLog-2015 2592 SHA256 80c9d75577d0efc423f4d80e3e4e56a634849038ac617f1c695fb924c750922e SHA512 b298b54e78ec57b594bd1e85ee4375e4631025744fe2d1493dac72db76fc497374ce86ef4b21b3fe328a55d78167f16c5cd53e8aeec90b9277c4809de63a1c1b WHIRLPOOL 86fa2ca855fe0d7cab2683ce4762f40bda7301cae24c278e706e2623a5c038863ae7afead44d0453782c7213de6860620746d4dfbf957ba332eb44a844343940 +MISC metadata.xml 314 SHA256 42ef40ac7e6c13621c8111c85148b8c9253d0ab9fba7cfff822302ca5131fde3 SHA512 2d933e44fbd5ec8dc05d7730bbca4f1d80d658f5735706fdc2ba3ce50b1637f37df9e5054d19e3e0e3869ea7b5417593d05bc8eaeaece0239000204666706687 WHIRLPOOL b85842b12a8b17d6578c68467ec6c695b91cf527a204c1437eb6999313d2e6b1c661ce6e67eb71dcc341e247370db5221a4b0750f13a24a65edf0e8a1f365d47 diff --git a/media-gfx/opcion/files/opcion-1.1.1-fix-source.patch b/media-gfx/opcion/files/opcion-1.1.1-fix-source.patch new file mode 100644 index 000000000000..4c5f1dc9c9e3 --- /dev/null +++ b/media-gfx/opcion/files/opcion-1.1.1-fix-source.patch @@ -0,0 +1,15 @@ +--- FontViewer/components/AAToggleButton.java 2007-04-29 12:20:16.000000000 +0200 ++++ FontViewer/components/AAToggleButton.java 2007-04-29 12:10:53.000000000 +0200 +@@ -38,7 +38,11 @@ + this.setToolTipText(fname + " (" + floc + ")"); + } + +- public String getFName() { ++ public AAToggleButton(String s) { ++ super(s); ++ } ++ ++ public String getFName() { + return fname; + } + diff --git a/media-gfx/opcion/metadata.xml b/media-gfx/opcion/metadata.xml new file mode 100644 index 000000000000..99e11a0882f4 --- /dev/null +++ b/media-gfx/opcion/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>fonts@gentoo.org</email> + <name>Fonts</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">opcion</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-gfx/opcion/opcion-1.1.1-r2.ebuild b/media-gfx/opcion/opcion-1.1.1-r2.ebuild new file mode 100644 index 000000000000..421aa9e100b6 --- /dev/null +++ b/media-gfx/opcion/opcion-1.1.1-r2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils java-pkg-2 + +MY_P="Opcion_v${PV}" + +DESCRIPTION="Free font viewer written in Java" +HOMEPAGE="http://opcion.sourceforge.net/" +SRC_URI="mirror://sourceforge/opcion/${MY_P}_src.zip" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +COMMON_DEP="=dev-java/jgoodies-looks-1.2*" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEP} + app-arch/unzip" + +S=${WORKDIR} + +src_unpack() { + unpack ${A} + cd "${S}" + + # add missing constructor + epatch "${FILESDIR}/${P}-fix-source.patch" + + # calls nonexisting constructor and seems unused + rm FontViewer/windows/test.java || die + + rm -rf com/jgoodies || die + find . -name '*.class' -delete || die + rm *.txt || die +} + +src_compile() { + find . -name '*.java' > "${T}/src.list" + local cp="$(java-pkg_getjars jgoodies-looks-1.2)" + mkdir build || die + # quite icky way to copy resources + cp -R FontViewer com build || die + find build -name '*.java' -delete + ejavac -nowarn -classpath "${cp}" -d build "@${T}/src.list" + jar cf ${PN}.jar -C build . || die +} + +src_install() { + java-pkg_dojar ${PN}.jar + + java-pkg_dolauncher ${PN} --main FontViewer.Opcion + + newicon FontViewer/resources/icons/IconSmall.png ${PN}-icon.png + make_desktop_entry ${PN} opcion ${PN}-icon +} |