summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2010-05-28 06:42:43 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2010-05-28 06:42:43 +0000
commit9e644d0e34e3d0aec87e681f85367452650bf1d1 (patch)
tree2ff4e6cae52aefe2ba85da897d4c6fe3ce48bf4d /sci-astronomy/galaxy
parentamd64 stable, bug #299844 (diff)
downloadgentoo-2-9e644d0e34e3d0aec87e681f85367452650bf1d1.tar.gz
gentoo-2-9e644d0e34e3d0aec87e681f85367452650bf1d1.tar.bz2
gentoo-2-9e644d0e34e3d0aec87e681f85367452650bf1d1.zip
New ebuild for galaxy. Ebuild written by Juan Pablo Lassala. Fixes bug 321719
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-astronomy/galaxy')
-rw-r--r--sci-astronomy/galaxy/ChangeLog11
-rw-r--r--sci-astronomy/galaxy/files/galaxy-1.8-gentoo.patch65
-rw-r--r--sci-astronomy/galaxy/galaxy-1.8.ebuild25
-rw-r--r--sci-astronomy/galaxy/metadata.xml14
4 files changed, 115 insertions, 0 deletions
diff --git a/sci-astronomy/galaxy/ChangeLog b/sci-astronomy/galaxy/ChangeLog
new file mode 100644
index 000000000000..d5a1c90175fb
--- /dev/null
+++ b/sci-astronomy/galaxy/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sci-astronomy/galaxy
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/galaxy/ChangeLog,v 1.1 2010/05/28 06:42:42 xarthisius Exp $
+
+*galaxy-1.8 (28 May 2010)
+
+ 28 May 2010; Kacper Kowalik <xarthisius@gentoo.org> +galaxy-1.8.ebuild,
+ +files/galaxy-1.8-gentoo.patch, +metadata.xml:
+ New ebuild for galaxy. Ebuild written by Juan Pablo Lassala. Fixes bug
+ 321719
+
diff --git a/sci-astronomy/galaxy/files/galaxy-1.8-gentoo.patch b/sci-astronomy/galaxy/files/galaxy-1.8-gentoo.patch
new file mode 100644
index 000000000000..fae98f14669d
--- /dev/null
+++ b/sci-astronomy/galaxy/files/galaxy-1.8-gentoo.patch
@@ -0,0 +1,65 @@
+--- desktop
++++ desktop
+@@ -3,7 +3,7 @@
+ Categories=Game
+ Type=Application
+ Terminal=false
+-Exec=/usr/local/bin/galaxy
+-Icon=/usr/local/share/galaxy/icons/galaxy.png
++Exec=/usr/bin/galaxy
++Icon=/usr/share/galaxy/icons/galaxy.png
+ GenericName=Stellar Simulation
+ Comment=Stars steered by gravity, galaxy evolution
+--- Makefile
++++ Makefile
+@@ -8,38 +8,39 @@
+ # replace -O3 with -g for GDB debugging
+ CXXFLAGS ?= -O3 -Wall
+ LDFLAGS ?= -O3 -Wall -rdynamic
+-PREFIX ?= /usr/local
++PREFIX = /usr
+
+-CFLAGS = $(CXXFLAGS) -c `pkg-config --cflags gtk+-2.0`
+-LFLAGS = $(LDFLAGS) `pkg-config --libs gtk+-2.0 gthread-2.0`
++GTK_CFLAGS = `pkg-config --cflags gtk+-2.0`
++GTK_LIBS = `pkg-config --libs gtk+-2.0 gthread-2.0`
+
+ BINDIR = $(PREFIX)/bin
+ DATADIR = $(PREFIX)/share/$(PROGRAM)
+ ICONDIR = $(DATADIR)/icons
+-DESKTOP = $(DATADIR)/kornelix-$(PROGRAM).desktop
+-DOCDIR = $(PREFIX)/share/doc/$(PROGRAM)
++DESKDIR = $(PREFIX)/share/applications
++DESKTOP = $(DESKDIR)/$(PROGRAM).desktop
++DOCDIR = $(PREFIX)/share/doc/$(PROGRAM)-$(VERSION)
+
+ $(PROGRAM): $(PROGRAM).o zfuncs.o
+- $(CXX) $(LFLAGS) -o $(PROGRAM) $(PROGRAM).o zfuncs.o
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(PROGRAM) $(PROGRAM).o zfuncs.o $(GTK_LIBS)
+
+ $(PROGRAM).o: $(SOURCE)
+- $(CXX) $(CFLAGS) -o $(PROGRAM).o $(SOURCE) \
++ $(CXX) $(CXXFLAGS) $(GTK_CFLAGS) -o $(PROGRAM).o -c $(SOURCE) \
+ -D "DATADIR=\"$(DATADIR)\"" -D "DOCDIR=\"$(DOCDIR)\""
+
+ zfuncs.o: zfuncs.cc
+- $(CXX) $(CFLAGS) zfuncs.cc \
++ $(CXX) $(CXXFLAGS) $(GTK_CFLAGS) -c zfuncs.cc \
+ -D "DATADIR=\"$(DATADIR)\"" -D "DOCDIR=\"$(DOCDIR)\"" -D "BINDIR=\"$(BINDIR)\""
+
+ install: $(PROGRAM)
+ mkdir -p $(DESTDIR)$(DOCDIR)
+ mkdir -p $(DESTDIR)$(BINDIR)
+- mkdir -p $(DESTDIR)$(DATADIR)
+ mkdir -p $(DESTDIR)$(ICONDIR)
+- cp -R doc/* $(DESTDIR)$(DOCDIR)
++ mkdir -p $(DESTDIR)$(DESKDIR)
++ cp -R doc/{images,userguide-en.html} $(DESTDIR)$(DOCDIR)
+ cp -R data/* $(DESTDIR)$(DATADIR)
+ cp icons/* $(DESTDIR)$(ICONDIR)
++ cp -f desktop $(DESTDIR)$(DESKTOP)
+ cp $(PROGRAM) $(DESTDIR)$(BINDIR)
+- @ echo use make menu to install desktop menu
+
+ menu:
+ cp -f desktop $(DESKTOP)
diff --git a/sci-astronomy/galaxy/galaxy-1.8.ebuild b/sci-astronomy/galaxy/galaxy-1.8.ebuild
new file mode 100644
index 000000000000..a460c09c59b9
--- /dev/null
+++ b/sci-astronomy/galaxy/galaxy-1.8.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/galaxy/galaxy-1.8.ebuild,v 1.1 2010/05/28 06:42:42 xarthisius Exp $
+
+inherit base toolchain-funcs
+
+DESCRIPTION="stellar simulation program"
+HOMEPAGE="http://kornelix.squarespace.com/galaxy/"
+SRC_URI="http://kornelix.squarespace.com/storage/downloads/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="x11-libs/gtk+"
+RDEPEND="${DEPEND}
+ x11-misc/xdg-utils"
+
+PATCHES=( "${FILESDIR}/${P}-gentoo.patch" )
+DOCS=( "doc/CHANGES" "doc/README" )
+
+pkg_setup() {
+ tc-export CXX
+}
diff --git a/sci-astronomy/galaxy/metadata.xml b/sci-astronomy/galaxy/metadata.xml
new file mode 100644
index 000000000000..c7f11b5929d7
--- /dev/null
+++ b/sci-astronomy/galaxy/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <maintainer>
+ <email>xarthisius@gentoo.org</email>
+ <name>Kacper Kowalik</name>
+ </maintainer>
+ <longdescription lang="en">
+ Stellar simulation program. Watch a few stars move around each-other,
+ accelerated by their mutual attractions, or watch thousands of random
+ stars evolve into a spiral galaxy.
+ </longdescription>
+</pkgmetadata>