diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-chemistry/gperiodic |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-chemistry/gperiodic')
-rw-r--r-- | sci-chemistry/gperiodic/Manifest | 11 | ||||
-rw-r--r-- | sci-chemistry/gperiodic/files/gperiodic-2.0.10-makefile.patch | 64 | ||||
-rw-r--r-- | sci-chemistry/gperiodic/files/gperiodic-2.0.10-nls.patch | 20 | ||||
-rw-r--r-- | sci-chemistry/gperiodic/files/gperiodic-3.0.1-makefile.patch | 66 | ||||
-rw-r--r-- | sci-chemistry/gperiodic/files/gperiodic-3.0.1-nls.patch | 20 | ||||
-rw-r--r-- | sci-chemistry/gperiodic/gperiodic-2.0.10-r2.ebuild | 47 | ||||
-rw-r--r-- | sci-chemistry/gperiodic/gperiodic-3.0.1.ebuild | 54 | ||||
-rw-r--r-- | sci-chemistry/gperiodic/metadata.xml | 16 |
8 files changed, 298 insertions, 0 deletions
diff --git a/sci-chemistry/gperiodic/Manifest b/sci-chemistry/gperiodic/Manifest new file mode 100644 index 000000000000..84eeabdd7fcb --- /dev/null +++ b/sci-chemistry/gperiodic/Manifest @@ -0,0 +1,11 @@ +AUX gperiodic-2.0.10-makefile.patch 2266 SHA256 e9a0d0e041e442baeedd8bf6dbba5f1e0054685bd2b2b9dabd1388f07f64a8f0 SHA512 f2e8369e7ad35e546f70191a18e07961f5000c354f0624ca5bd0a7bf77f6a8fb5e3fa299688ffccba8fbd1c7e0e28de9e214a030f5a6d2909c72f26772ac2b73 WHIRLPOOL 6cf663b6365bd31cc7be3d32dcf8ca635230aeaafd4890ca6d223fac1a3f0983eb2dbf59cf78f40793fbb0dd6552496739d5014ad4ff6a0edee4ba19c702a82d +AUX gperiodic-2.0.10-nls.patch 508 SHA256 61d66f8d376f39eaf185ba728d6057987f4ce1851315b62a6641b83f8cefccb0 SHA512 1c5a6f067ac9e6f9b1073bc97c3f5ae133f7f1f84e54ee30a9898cb658b31db20c4c483cc9557bd43db3eec2ce9a82df49611fb4d692e5b004b08461cb149a43 WHIRLPOOL 56da48d0d7c99fc6a14e762bbba4a062d2e83d54cdf1dc3451cbf9014e6fc322d2a35605be9d3e6a2181e020c37fa4b3af545cd2363e6642047a4a1bf65e7571 +AUX gperiodic-3.0.1-makefile.patch 3196 SHA256 661b0c978db44c189a22268f08256a06453422d5b3c0fbbef7d6ed0275b0d9a4 SHA512 fd2f17a2f83c32387769ecf5d42599a41fd2c5775cefe5fcf5c9f3fcc0f3d5e077c524bcb1467c0fe6176304f78a4ba7ff377da9d92cbd57e576f5aceb5d13e4 WHIRLPOOL ec94cd1c046f20e23ef7273d4f2cb3671e99d4398336850834f9357bb44b298f6d67f397e4b1425476f1f6c53eedf59dc2b239ad4c5320823b4dd2acadea8dbc +AUX gperiodic-3.0.1-nls.patch 488 SHA256 674816ad43963021719b53477e5f05b0e4b686f061e7b90c4d41ef5dc9ddf684 SHA512 acd270f4c8e4cd271f2d48ea48e716195cb39e14ea09a41dc48787756f4f5806fea3bb3cf5072aac49f897c610a36fcbe89de433efefab845f7462d4693a5eef WHIRLPOOL 25593bb7fcc4e751d0929dd1f971cbe95e0c32a05bbb3ff0808787dc96da7ad35aca8cf352a7d94e4e6bda46451f70ee6d2764aa53901da456a7a5c6c67953ec +DIST gperiodic-2.0.10.tar.gz 131213 SHA256 78d72870c51c39e4a35c804c05b8ef5e39f88d42eced52b2934e21d74fb8d096 SHA512 23d0074ad5b0f9e25e8eee63f8c375e2448b1ee7c00f89e965b7dd8ce3f60f20251d7699a2f7a767228316144b946a5ac204a3e478c395767133f7fc801b51ba WHIRLPOOL b758b622bfb980aad45b0bb6e2850579408959c3bf700f4dbb21d4bc64168d2a589a9ed5974f75b5eaf7f6c9d593c69dbc9b470957b01457caa30eb356850f14 +DIST gperiodic-3.0.1.tar.gz 375347 SHA256 d023e6f3b8aef773331c5f87d1de17f5fa120e67f7b6da1439ca7861a2df0905 SHA512 3bf47359dda1a029f3528ea04d28cd75909bceb535f6e1dc6c90f5a17b668e0dd98900ddd83633649383ff4e2fc588265275e0e4a27897ecc4ac6db4e93befc1 WHIRLPOOL 8700f0ad254d7ece507b4c01d54ce510121b266d3b533d6035d17ef236d6310008ba2bd80900e92697bbc42c985632421c2be87a2f4bea43903c0207df231198 +EBUILD gperiodic-2.0.10-r2.ebuild 983 SHA256 e5836482ed953516a10cb76e3eb476d6d84f4e3a8920f530b13cf373e1423d47 SHA512 98a0ae652b27414758ce0c58ba04f1ec83d48a467522c0cda190627721833e57b39092c2dabe2fd56523f4c766ed30e98830eff5ef4930897d81261365897a8f WHIRLPOOL fa92014cadd331ee23407eb20d4d39dd54ebc015c70e7c618f25bb9ec575212169f7d8e5d749f65e1dce5febad6dc75634746f579efa065352dccd2318963d18 +EBUILD gperiodic-3.0.1.ebuild 1295 SHA256 7f738c1a41ec2954c7448eb04d1614a24bd93fac80013dbed469677786924060 SHA512 03ea47fd92351d360ab97a50824d3a4976aace5b5f8c5f1dc4606d09cc5f0ddc3038dffd589030bd458dfbe11d5b3421d29f643d8905a8b403d511f15eeb84f7 WHIRLPOOL c4773b2c471965d276d70ab4a5928c4528275407d89ba14701175eeb8492816daad69edb0c4a5bd47a2af859733d237cbf6abead82ac292dcbc7d7bfb9b3e075 +MISC ChangeLog 4015 SHA256 98a57e50f4b219795e21ea810d4c93104b10d9eeb0b9eb89434023e33c8727b5 SHA512 a993c0faf74c72ba1d03dd15a65b1a3d5523435dd6d49cf4cfaaa293c823f9c76c7d63478214febbfe1b050dc37efb45121f46a77e72411d61e12a286f98989b WHIRLPOOL 9933f2c0fe03727c537ba7284f41815d3dd6fef73baf3c24260f785bc1e1441495c4c0b6fb264e0b1a1d34956adf6696284f1ae6f48c57c965fb68c034e4cf1d +MISC ChangeLog-2015 4395 SHA256 9096b1a982181ea6bb04f0120f430c53f96ad956d2d01a3a35d809467d61ed81 SHA512 514efe3a790500ca26421338cb2c0c8b587eeece02307dd73b55d6939b7d4c44775e36dc36f0067e31219aa52d5b0cac78a1bebc1d3b523bd93ce1f5f18badb2 WHIRLPOOL eb6e2babe13920062dff6c24262971acc37b3016579a5fbe5b0a84d8b6d93fecd4d5d95ed3ad70c06b5850b2e2637fcbb9b0048a2be8c647173e40f7730b4671 +MISC metadata.xml 556 SHA256 bbc0a62437a897ae88e71e02d04c2118e79ddf39e934b5b073743fe48af04812 SHA512 d765609bc38fc5e5855863130053520d23b2dd36c8f2934feeedb6a8f1f62786460c69a6f95b474c7442cefb3560edff8daaf6388c84014241560d4f1b13bdfb WHIRLPOOL 900db836a4a4cabe5f035937024f8efca6fc8c51acd5ce5b0d7f3d83a1cc9f8acf587aa3ed8b9204a42d0413b1501fde4e441d946a53f2cd844b1369084fa011 diff --git a/sci-chemistry/gperiodic/files/gperiodic-2.0.10-makefile.patch b/sci-chemistry/gperiodic/files/gperiodic-2.0.10-makefile.patch new file mode 100644 index 000000000000..abdb5caae4f2 --- /dev/null +++ b/sci-chemistry/gperiodic/files/gperiodic-2.0.10-makefile.patch @@ -0,0 +1,64 @@ +Respect CC, CFLAGS, LDFLAGS +Fix install paths +Fix parallel build +Drop DEPRECATED flags, bug #391099 + +--- Makefile ++++ Makefile +@@ -1,6 +1,5 @@ +-CC := gcc +-CFLAGS := `pkg-config --cflags gtk+-2.0` -I. -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED +-LIBS :=`pkg-config --libs gtk+-2.0` ++CFLAGS += `pkg-config --cflags gtk+-2.0` -I. ++LIBS +=`pkg-config --libs gtk+-2.0` + bindir ?= /usr/bin + datadir ?= /usr/share + enable_nls ?= 1 +@@ -8,12 +7,11 @@ + .c.o: + $(CC) -c $(CFLAGS) $(CPPFLAGS) $< + +-all: +- make gperiodic +- make -C po/ all enable_nls=$(enable_nls) ++all: gperiodic ++ $(MAKE) -C po/ all enable_nls=$(enable_nls) + + gperiodic: gperiodic.o +- $(CC) $(CFLAGS) -o gperiodic gperiodic.o $(LIBS) ++ $(CC) $(LDFLAGS) $(CFLAGS) -o gperiodic gperiodic.o $(LIBS) + ifeq ($(strip),1) + strip gperiodic + endif +@@ -23,24 +21,21 @@ + gperiodic.o: gperiodic.c gperiodic.h table_data.h + + install: +- mkdir -p $(DESTDIR)$(bindir) +- install -m 755 gperiodic $(DESTDIR)$(bindir) +- mkdir -p $(DESTDIR)$(datadir)/applications +- install -m 644 gperiodic.desktop $(DESTDIR)$(datadir)/applications +- mkdir -p $(DESTDIR)$(datadir)/pixmaps +- install -m 644 gperiodic.png $(DESTDIR)$(datadir)/pixmaps +- install -m 644 gperiodic-crystal.png $(DESTDIR)$(datadir)/pixmaps +- make -C po/ install enable_nls=$(enable_nls) datadir=$(datadir) DESTDIR=$(DESTDIR) ++ install -D -m 755 gperiodic $(DESTDIR)$(bindir)/gperiodic ++ install -D -m 644 gperiodic.desktop $(DESTDIR)$(datadir)/applications/gperiodic.desktop ++ install -D -m 644 gperiodic.png $(DESTDIR)$(datadir)/pixmaps/gperiodic.png ++ install -m 644 gperiodic-crystal.png $(DESTDIR)$(datadir)/pixmaps/gperiodic-crystal.png ++ $(MAKE) -C po/ install enable_nls=$(enable_nls) datadir=$(datadir) DESTDIR=$(DESTDIR) + + uninstall: + rm -f $(bindir)/gperiodic \ + $(datadir)/applications/gperiodic.desktop + $(datadir)/pixmaps/gperiodic.png \ + $(datadir)/pixmaps/gperiodic-crystal.png +- make -C po/ uninstall enable_nls=$(enable_nls) datadir=$(datadir) DESTDIR=$(DESTDIR) ++ $(MAKE) -C po/ uninstall enable_nls=$(enable_nls) datadir=$(datadir) DESTDIR=$(DESTDIR) + + clean: + rm -f *.o gperiodic +- make -C po/ clean ++ $(MAKE) -C po/ clean + + .PHONY: install uninstall clean diff --git a/sci-chemistry/gperiodic/files/gperiodic-2.0.10-nls.patch b/sci-chemistry/gperiodic/files/gperiodic-2.0.10-nls.patch new file mode 100644 index 000000000000..de0bea04dc14 --- /dev/null +++ b/sci-chemistry/gperiodic/files/gperiodic-2.0.10-nls.patch @@ -0,0 +1,20 @@ + po/Makefile | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/po/Makefile b/po/Makefile +index d7d7d78..179dad6 100644 +--- a/po/Makefile ++++ b/po/Makefile +@@ -26,10 +26,12 @@ endif + + install: + $(MAKE) all ++ifeq ($(enable_nls),1) + for f in $(FILES_MO) ; do \ + mkdir -p $(DESTDIR)$(LOCALEDIR)/`basename $$f .mo`/LC_MESSAGES ; \ + install -m 644 $$f $(DESTDIR)$(LOCALEDIR)/`basename $$f .mo`/LC_MESSAGES/$(PACKAGE).mo ; \ + done ++endif + + uninstall: + for f in $(FILES_MO) ; do \ diff --git a/sci-chemistry/gperiodic/files/gperiodic-3.0.1-makefile.patch b/sci-chemistry/gperiodic/files/gperiodic-3.0.1-makefile.patch new file mode 100644 index 000000000000..a7a402a1a781 --- /dev/null +++ b/sci-chemistry/gperiodic/files/gperiodic-3.0.1-makefile.patch @@ -0,0 +1,66 @@ + Makefile | 36 ++++++++++++++---------------------- + 1 file changed, 14 insertions(+), 22 deletions(-) + +diff --git a/Makefile b/Makefile +index 7e86dc4..9bd4fe8 100644 +--- a/Makefile ++++ b/Makefile +@@ -14,8 +14,8 @@ enable_nls ?= 1 + $(CC) -c $(CFLAGS) $(CPPFLAGS) $< + + all: +- make gperiodic +- make -C po/ all enable_nls=$(enable_nls) ++ $(MAKE) gperiodic ++ $(MAKE) -C po/ all enable_nls=$(enable_nls) + intltool-merge -d po gperiodic.desktop.in gperiodic.desktop + + gperiodic: gperiodic.o +@@ -29,24 +29,16 @@ gpdata.o: gpdata.c gperiodic.h + gperiodic.o: gperiodic.c gperiodic.h table_data.h + + install: +- mkdir -p $(DESTDIR)$(bindir) +- install -m 755 gperiodic $(DESTDIR)$(bindir) +- mkdir -p $(DESTDIR)$(datadir)/applications +- install -m 644 gperiodic.desktop $(DESTDIR)$(datadir)/applications +- mkdir -p $(DESTDIR)$(datadir)/pixmaps +- install -m 644 icons/gperiodic.png $(DESTDIR)$(datadir)/pixmaps +- install -m 644 icons/gperiodic.xpm $(DESTDIR)$(datadir)/pixmaps +- mkdir -p $(DESTDIR)$(mandir) +- install -m 644 gperiodic.1 $(DESTDIR)$(mandir) +- mkdir -p $(DESTDIR)$(iconsdir)/hicolor/16x16/apps +- mkdir -p $(DESTDIR)$(iconsdir)/hicolor/32x32/apps +- mkdir -p $(DESTDIR)$(iconsdir)/hicolor/48x48/apps +- mkdir -p $(DESTDIR)$(iconsdir)/hicolor/64x64/apps +- install -m 644 icons/hicolor/16x16/apps/gperiodic.png $(DESTDIR)$(iconsdir)/hicolor/16x16/apps +- install -m 644 icons/hicolor/32x32/apps/gperiodic.png $(DESTDIR)$(iconsdir)/hicolor/32x32/apps +- install -m 644 icons/hicolor/48x48/apps/gperiodic.png $(DESTDIR)$(iconsdir)/hicolor/48x48/apps +- install -m 644 icons/hicolor/64x64/apps/gperiodic.png $(DESTDIR)$(iconsdir)/hicolor/64x64/apps +- make -C po/ install enable_nls=$(enable_nls) datadir=$(datadir) DESTDIR=$(DESTDIR) ++ install -D -m 755 gperiodic $(DESTDIR)$(bindir)/gperiodic ++ install -D -m 644 gperiodic.desktop $(DESTDIR)$(datadir)/applications/gperiodic.desktop ++ install -D -m 644 icons/gperiodic.png $(DESTDIR)$(datadir)/pixmaps/gperiodic.png ++ install -D -m 644 icons/gperiodic.xpm $(DESTDIR)$(datadir)/pixmaps/gperiodic.xpm ++ install -D -m 644 gperiodic.1 $(DESTDIR)$(mandir)/gperiodic.1 ++ install -D -m 644 icons/hicolor/16x16/apps/gperiodic.png $(DESTDIR)$(iconsdir)/hicolor/16x16/apps/gperiodic.png ++ install -D -m 644 icons/hicolor/32x32/apps/gperiodic.png $(DESTDIR)$(iconsdir)/hicolor/32x32/apps/gperiodic.png ++ install -D -m 644 icons/hicolor/48x48/apps/gperiodic.png $(DESTDIR)$(iconsdir)/hicolor/48x48/apps/gperiodic.png ++ install -D -m 644 icons/hicolor/64x64/apps/gperiodic.png $(DESTDIR)$(iconsdir)/hicolor/64x64/apps/gperiodic.png ++ $(MAKE) -C po/ install enable_nls=$(enable_nls) datadir=$(datadir) DESTDIR=$(DESTDIR) + + uninstall: + rm -f $(bindir)/gperiodic \ +@@ -58,10 +50,10 @@ uninstall: + $(iconsdir)/hicolor/32x32/apps/gperiodic.png \ + $(iconsdir)/hicolor/48x48/apps/gperiodic.png \ + $(iconsdir)/hicolor/64x64/apps/gperiodic.png +- make -C po/ uninstall enable_nls=$(enable_nls) datadir=$(datadir) DESTDIR=$(DESTDIR) ++ $(MAKE) -C po/ uninstall enable_nls=$(enable_nls) datadir=$(datadir) DESTDIR=$(DESTDIR) + + clean: + rm -f *.o gperiodic gperiodic.desktop +- make -C po/ clean ++ $(MAKE) -C po/ clean + + .PHONY: install uninstall clean diff --git a/sci-chemistry/gperiodic/files/gperiodic-3.0.1-nls.patch b/sci-chemistry/gperiodic/files/gperiodic-3.0.1-nls.patch new file mode 100644 index 000000000000..4420ca68e585 --- /dev/null +++ b/sci-chemistry/gperiodic/files/gperiodic-3.0.1-nls.patch @@ -0,0 +1,20 @@ + po/Makefile | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/po/Makefile b/po/Makefile +index d7d7d78..c596e5b 100644 +--- a/po/Makefile ++++ b/po/Makefile +@@ -26,10 +26,12 @@ endif + + install: + $(MAKE) all ++ifeq ($(enable_nls),1) + for f in $(FILES_MO) ; do \ + mkdir -p $(DESTDIR)$(LOCALEDIR)/`basename $$f .mo`/LC_MESSAGES ; \ + install -m 644 $$f $(DESTDIR)$(LOCALEDIR)/`basename $$f .mo`/LC_MESSAGES/$(PACKAGE).mo ; \ + done ++endif + + uninstall: + for f in $(FILES_MO) ; do \ diff --git a/sci-chemistry/gperiodic/gperiodic-2.0.10-r2.ebuild b/sci-chemistry/gperiodic/gperiodic-2.0.10-r2.ebuild new file mode 100644 index 000000000000..d13194b76ff0 --- /dev/null +++ b/sci-chemistry/gperiodic/gperiodic-2.0.10-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="Periodic table application for Linux" +HOMEPAGE="http://www.frantz.fi/software/gperiodic.php" +SRC_URI="http://www.frantz.fi/software/${P}.tar.gz" + +KEYWORDS="amd64 x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="nls" + +RDEPEND=" + sys-libs/ncurses:0 + x11-libs/gtk+:2 + x11-libs/cairo[X] + nls? ( sys-devel/gettext )" + +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-makefile.patch \ + "${FILESDIR}"/${P}-nls.patch + sed \ + -e '/Encoding/d' \ + -i ${PN}.desktop || die +} + +src_compile() { + local myopts + use nls && myopts="enable_nls=1" || myopts="enable_nls=0" + emake CC=$(tc-getCC) ${myopts} +} + +src_install() { + local myopts + use nls && myopts="enable_nls=1" || myopts="enable_nls=0" + emake DESTDIR="${D}" ${myopts} install + dodoc AUTHORS ChangeLog README NEWS + newdoc po/README README.translation +} diff --git a/sci-chemistry/gperiodic/gperiodic-3.0.1.ebuild b/sci-chemistry/gperiodic/gperiodic-3.0.1.ebuild new file mode 100644 index 000000000000..5e16fff43ec1 --- /dev/null +++ b/sci-chemistry/gperiodic/gperiodic-3.0.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="Periodic table application for Linux" +HOMEPAGE="http://www.frantz.fi/software/gperiodic.php" +SRC_URI="http://downloads.sourceforge.net/project/${PN}/${P}.tar.gz" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="nls" +MY_AVAILABLE_LINGUAS=" be bg cs da de es fi fr gl id is it lt ms nl pl pt_BR pt ru sv tr uk" +IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}" + +RDEPEND=" + sys-libs/ncurses:0 + x11-libs/gtk+:2 + x11-libs/cairo[X] + nls? ( sys-devel/gettext )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-makefile.patch \ + "${FILESDIR}"/${P}-nls.patch + for lang in ${MY_AVAILABLE_LINGUAS}; do + if ! use linguas_${lang}; then + einfo "Cleaning translation for ${lang}" + rm po/${lang}.po || die + fi + done +} + +src_compile() { + local myopts + use nls && myopts="enable_nls=1" || myopts="enable_nls=0" + emake \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + CC=$(tc-getCC) ${myopts} +} + +src_install() { + local myopts + use nls && myopts="enable_nls=1" || myopts="enable_nls=0" + emake DESTDIR="${D}" ${myopts} install + dodoc AUTHORS ChangeLog README + newdoc po/README README.translation +} diff --git a/sci-chemistry/gperiodic/metadata.xml b/sci-chemistry/gperiodic/metadata.xml new file mode 100644 index 000000000000..fdfc090a816f --- /dev/null +++ b/sci-chemistry/gperiodic/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci-chemistry@gentoo.org</email> + <name>Gentoo Chemistry Project</name> + </maintainer> + <longdescription> + GPeriodic is a program for looking up various data about elements from the + periodic table, based on the GTK2 toolkit. It also features a command line + interface. + </longdescription> + <upstream> + <remote-id type="sourceforge">downloads</remote-id> + </upstream> +</pkgmetadata> |