Browse Source

Adding ebuild for kseg

git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@27 32389bae-6d03-0410-99cf-db05cde120eb
ambertools
tulku 17 years ago
parent
commit
c8504a5528
  1. 9
      sci-mathematics/kseg/ChangeLog
  2. 5
      sci-mathematics/kseg/Manifest
  3. 1
      sci-mathematics/kseg/files/digest-kseg-0.402
  4. 36
      sci-mathematics/kseg/files/kseg-0.402-gentoo.patch
  5. 33
      sci-mathematics/kseg/kseg-0.402.ebuild
  6. 10
      sci-mathematics/kseg/metadata.xml

9
sci-mathematics/kseg/ChangeLog

@ -0,0 +1,9 @@
# ChangeLog for sci-mathematics/kseg
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*kseg-0.402 (30 Nov 2005)
30 Nov 2005; Lucas Chiesa <lucas.chiesa@gmail.com> kseg-0.402.ebuild:
Initial import of kseg. Thanks to Gard Spreemann <spreeman@stud.ntnu.no>
for his work. Closes bug #101341

5
sci-mathematics/kseg/Manifest

@ -0,0 +1,5 @@
MD5 5244aa1f248a0092499716098d063212 kseg-0.402.ebuild 844
MD5 72729b0a032ead44a9f0cdb896333a90 ChangeLog 330
MD5 62f5dab87718e5c02a5700e85f8577e0 metadata.xml 255
MD5 34627a44b03b7d79759845d751804d34 files/kseg-0.402-gentoo.patch 1478
MD5 9f5e1bfb3507fbe41ce730d4978accfa files/digest-kseg-0.402 62

1
sci-mathematics/kseg/files/digest-kseg-0.402

@ -0,0 +1 @@
MD5 fd2a02afbfe3fcc53367527a75a340b5 kseg-0.402.tar.gz 626031

36
sci-mathematics/kseg/files/kseg-0.402-gentoo.patch

@ -0,0 +1,36 @@
diff -urN kseg-0.402.orig/Makefile kseg-0.402/Makefile
--- kseg-0.402.orig/Makefile 2004-11-24 18:07:27.000000000 +0100
+++ kseg-0.402/Makefile 2005-08-04 15:33:03.000000000 +0200
@@ -1,7 +1,7 @@
# Makefile for KSEG
CC = g++
QTINCLUDE = -I$(QTDIR)/include
-CCFLAGS = -c -Wall -O2 -fomit-frame-pointer -ffast-math
+CCFLAGS = -c $(CXXFLAGS)
LIBS = -lm -L$(QTDIR)/lib -lqt -lz
MOC = $(QTDIR)/bin/moc
LUPDATE = $(QTDIR)/bin/lupdate
diff -urN kseg-0.402.orig/formula/Makefile kseg-0.402/formula/Makefile
--- kseg-0.402.orig/formula/Makefile 2004-11-24 18:07:28.000000000 +0100
+++ kseg-0.402/formula/Makefile 2005-08-04 15:33:16.000000000 +0200
@@ -1,7 +1,7 @@
# Makefile for formula
CC = g++
QTINCLUDE = -I$(QTDIR)/include
-CCFLAGS = -c -Wall -O2 -fomit-frame-pointer -ffast-math
+CCFLAGS = -c $(CXXFLAGS)
LIBS =
MOC = $(QTDIR)/bin/moc
diff -urN kseg-0.402.orig/main.cpp kseg-0.402/main.cpp
--- kseg-0.402.orig/main.cpp 2004-11-24 18:07:27.000000000 +0100
+++ kseg-0.402/main.cpp 2005-08-04 15:32:48.000000000 +0200
@@ -37,7 +37,7 @@
//set some default properties
KSegProperties::setPropertyDefault("Language", "");
- KSegProperties::setPropertyDefault("LanguageDir", ".");
+ KSegProperties::setPropertyDefault("LanguageDir", "/usr/share/doc/kseg-0.402/help");
KSegProperties::setPropertyDefault("SelectType", "BorderSelect");
KSegProperties::setPropertyDefault("QuickPlayDirectory", ".");
KSegProperties::setPropertyDefault("RecentListSize", "4");

33
sci-mathematics/kseg/kseg-0.402.ebuild

@ -0,0 +1,33 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
DESCRIPTION="Interactive geometry program for exploring Euclidean geometry."
HOMEPAGE="http://www.mit.edu/~ibaran/kseg.html"
SRC_URI="http://www.mit.edu/~ibaran/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=x11-libs/qt-3.0.0"
src_unpack() {
unpack ${A}
cd ${S}
# Fix silly hardcoded help file path and CCFLAGS.
# The help location has to be changed when changing
# version. It is allways /usr/share/doc/${PF}/help
epatch ${FILESDIR}/${PF}-gentoo.patch
}
src_install() {
exeinto /usr/bin
doexe kseg
dodoc AUTHORS ChangeLog README README.translators VERSION
insinto /usr/share/doc/${PF}/help
doins *.html *.qm
insinto /usr/share/doc/${PF}/examples
doins examples/*
}

10
sci-mathematics/kseg/metadata.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>sci</herd>
</maintainer>
<email> lucas.chiesa@gmail.com </email>
<name> Lucas Chiesa </name>
</maintainer>
</pkgmetadata>
Loading…
Cancel
Save