diff options
Diffstat (limited to 'sci-chemistry/easychem')
-rw-r--r-- | sci-chemistry/easychem/Manifest | 6 | ||||
-rw-r--r-- | sci-chemistry/easychem/easychem-0.6-r1.ebuild | 39 | ||||
-rw-r--r-- | sci-chemistry/easychem/files/0.6-gentoo.patch | 65 | ||||
-rw-r--r-- | sci-chemistry/easychem/metadata.xml | 18 |
4 files changed, 128 insertions, 0 deletions
diff --git a/sci-chemistry/easychem/Manifest b/sci-chemistry/easychem/Manifest new file mode 100644 index 000000000000..f617e757ba12 --- /dev/null +++ b/sci-chemistry/easychem/Manifest @@ -0,0 +1,6 @@ +AUX 0.6-gentoo.patch 1770 SHA256 142c45b63a775aed5563ffffec9230f92ab0f7fe1cc05ca68f49a2c956a9963a SHA512 bf641ed0d0f01d895de9ff5892c475bda14b7d14d44898e02126d3f56bfdad59f425b722031e5e983f7b9633308d6463653422fa16323e06cf22cd3f9b88f261 WHIRLPOOL b6f8f4fdd61c5deab93dae1ed013fffb562949ad7d5d1e50f622eeea5e00017cbc1ec1910ab2c789d18cf174863d363d6a812eaa07c149fbc744ecfd2ae6aa05 +DIST easychem-0.6.tar.gz 265458 SHA256 1dba1a1ed1862c723cd77184a90ee7571a26ebcb0d3c22e7e032af1cbafe284d SHA512 83f877d1813287592a460f4dc3769feda88e45d8f77cd728c4055b60521babe253b4432033941ff429c753cfe675a642714052a01736534147398d6972e47051 WHIRLPOOL 7869025a921b2a6ada516f60c3e79247b1ad74a0bb904f7dd9b7bd993b3b5166ccd3f266f6c2e85198c8bde1ddaf863518a7adea7a6fd9b22bf789e1df7103fe +EBUILD easychem-0.6-r1.ebuild 811 SHA256 1e8a824c90669f0a60cf185d192b31e2a62f75afa4705dc98bfd5fb6467548d3 SHA512 3321fd6357d06960f0d5dd1cdf96cb2db39d362785a1be8dd2571df9a53f1b30fa469d301c6730d7447f35b51fc82069f801af826e20b0eda1c14b113eac8667 WHIRLPOOL 940a121246700c231bd426edbb304b4991a5c1f2b0f7c9bf4e87f7ee9788d5e70e8bc3eb3aebaff87c30582fe74eea258d8252cd2cf5b58bcd4f5a852fb6ee54 +MISC ChangeLog 2498 SHA256 ff265ad724daea5b96563167660761d915e35f23508fa421d9bd49a2654279ab SHA512 4431bd488efc3e47952e9c234231a5a9894fd99239819f4fa6a926da7a7096ebbe783862af7170446b484081ba249b0f998553d26a04b7653b528cca0a55f673 WHIRLPOOL f25c1508a82da359b8b00ee15bfa43dc918e8416d37067452886743f99fee977fe45b95f20ff529ad2220b0477d428d88ec20f1bded9d87bfda9dc7a29f2f7fd +MISC ChangeLog-2015 3585 SHA256 38288ed0c4997bf906a30ab48e8d9f79620c1234f76fcd111f4e5ddff0867e2c SHA512 a3c69093a8d641ec39dcb16d71c161038b2fbaeeb585ae99b38a87d9edb04c4f9c3d51a3f1ab97b7eef04105699ec0e6e9f71fbddcb3450dfdb1b9b7f8c9ae6e WHIRLPOOL 6072e73540a3eca5c220eca37954ff4a06eb57002e259f8d986b1fc6fcf4c29722e71280ab730bbff80856cfb9d2c3e415ef5c57149987bea63dfb813326b49a +MISC metadata.xml 768 SHA256 84d51855f19655ebdc8961027bb8114799107aa379128a6eec269acaae185725 SHA512 d1898532271ade98b1dbde9d4d38d8b9b5750008fd8ebc99e67cfcfa990b86b5f2692dc23f9f8dca4052a0db432be0b8c7130fb52610bf34ddfe00ae77c31e96 WHIRLPOOL 0809931edf09404acd5ceff91203af06a0007fa1390de86f164b5b351d3fc772acb784ddcbdea38c3f9799b024e44fce656c26133e72f61eeff1c507ab5dcc26 diff --git a/sci-chemistry/easychem/easychem-0.6-r1.ebuild b/sci-chemistry/easychem/easychem-0.6-r1.ebuild new file mode 100644 index 000000000000..650c236dfeaf --- /dev/null +++ b/sci-chemistry/easychem/easychem-0.6-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="Chemical structure drawing program - focused on presentation" +HOMEPAGE="http://easychem.sourceforge.net/" +SRC_URI="mirror://sourceforge/easychem/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + x11-libs/gtk+:2 + app-text/ghostscript-gpl + media-gfx/pstoedit" +DEPEND="${RDEPEND} + dev-lang/perl + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-gentoo.patch + tc-export CC +} + +src_compile() { + ln -s Makefile.linux Makefile || die + DGS_PATH="${EPREFIX}"/usr/bin DPSTOEDIT_PATH="${EPREFIX}"/usr/bin \ + C_FLAGS="${CFLAGS}" emake -e +} + +src_install () { + dobin easychem + dodoc TODO +} diff --git a/sci-chemistry/easychem/files/0.6-gentoo.patch b/sci-chemistry/easychem/files/0.6-gentoo.patch new file mode 100644 index 000000000000..000e4373b3c2 --- /dev/null +++ b/sci-chemistry/easychem/files/0.6-gentoo.patch @@ -0,0 +1,65 @@ +diff --git a/Makefile.linux b/Makefile.linux +index 6638394..5da56b0 100644 +--- a/Makefile.linux ++++ b/Makefile.linux +@@ -1,5 +1,5 @@ + # The C compiler +-CC=gcc ++CC ?= gcc + + # The following line must be uncommented if you want to specify a place + # where the 'gs' (or 'pstoedit') program is. +@@ -25,11 +25,10 @@ GTK_LIBS=`pkg-config --libs gtk+-2.0` + # The list of important files + OBJECTS=auxi.o bonds.o easychem.o export.o dialogs.o detect.o library.o drawing.o + +-all: easychem po/ ++all: easychem po + +-easychem: postscript/ graph/ $(OBJECTS) +- $(CC) -o easychem $(OBJECTS) $(GTK_LIBS) $(C_FLAGS) +- strip easychem ++easychem: postscript graph $(OBJECTS) ++ $(CC) $(C_FLAGS) $(LDFLAGS) -o easychem $(OBJECTS) $(GTK_LIBS) -lm + + clean: FORCE + -cd graph; make clean +@@ -37,7 +36,7 @@ clean: FORCE + -cd po; make clean + -rm $(OBJECTS) easychem + +-export.o: export.c common.h bonds.h postscript/ ++export.o: export.c common.h bonds.h postscript + $(CC) $(GTK_FLAGS) $(C_FLAGS) -c export.c + bonds.o: bonds.c common.h bonds.h + $(CC) $(GTK_FLAGS) $(C_FLAGS) -c bonds.c +@@ -49,20 +48,22 @@ library.o: library.c common.h library.h + $(CC) $(GTK_FLAGS) $(C_FLAGS) -c library.c + drawing.o: drawing.c common.h drawing.h + $(CC) $(GTK_FLAGS) $(C_FLAGS) -c drawing.c +-dialogs.o: dialogs.c common.h dialogs.h graph/ ++dialogs.o: dialogs.c common.h dialogs.h graph + $(CC) $(GTK_FLAGS) $(C_FLAGS) -c dialogs.c + detect.o: detect.c common.h detect.h + $(CC) $(GTK_FLAGS) $(C_FLAGS) -c detect.c + + # The rules for subdirectories +-graph/: FORCE +- cd graph; make all ++graph: ++ +make -C $@ + +-postscript/: FORCE +- cd postscript; make all ++postscript: ++ +make -C $@ + +-po/: FORCE +- cd po; make all ++po: ++ +make -C $@ + + # This is used to force an update + FORCE: ++ ++.PHONY: graph postscript po diff --git a/sci-chemistry/easychem/metadata.xml b/sci-chemistry/easychem/metadata.xml new file mode 100644 index 000000000000..f55348bea1a8 --- /dev/null +++ b/sci-chemistry/easychem/metadata.xml @@ -0,0 +1,18 @@ +<?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> + EasyChem is a program designed to draw chemical molecules, written under + Linux using Gtk+ 2.4. It is implemented with a strong focus on producing + press quality molecules. Easychem can be a little more difficult to learn to + use, but when mastered it can be very fast and powerful. It can draw + ornaments easily, and exports to EPS with LaTeX fonts among other things. + </longdescription> + <upstream> + <remote-id type="sourceforge">easychem</remote-id> + </upstream> +</pkgmetadata> |