aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2008-04-04 18:02:51 +0000
committerbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2008-04-04 18:02:51 +0000
commit1db8ab146b18ed34427732f221d46b293aa4acf6 (patch)
treed4af4f347167571cde8db1df83009f869e33eeb5 /media-gfx
parentplplot: more fixes on use flags and fortran (diff)
downloadsci-1db8ab146b18ed34427732f221d46b293aa4acf6.tar.gz
sci-1db8ab146b18ed34427732f221d46b293aa4acf6.tar.bz2
sci-1db8ab146b18ed34427732f221d46b293aa4acf6.zip
added dawn
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@1002 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/dawn/ChangeLog8
-rw-r--r--media-gfx/dawn/Manifest5
-rw-r--r--media-gfx/dawn/dawn-3.88a.ebuild61
-rw-r--r--media-gfx/dawn/files/dawn-3.88a-no-interactive.patch292
4 files changed, 366 insertions, 0 deletions
diff --git a/media-gfx/dawn/ChangeLog b/media-gfx/dawn/ChangeLog
new file mode 100644
index 000000000..1fae67baa
--- /dev/null
+++ b/media-gfx/dawn/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for media-gfx/dawn
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 04 Apr 2008; S├ębastien Fabbro <bicatali@gentoo.org>
+ +files/dawn-3.88a-no-interactive.patch, +dawn-3.88a.ebuild:
+ Initial import.
+
diff --git a/media-gfx/dawn/Manifest b/media-gfx/dawn/Manifest
new file mode 100644
index 000000000..1f2a5f895
--- /dev/null
+++ b/media-gfx/dawn/Manifest
@@ -0,0 +1,5 @@
+AUX dawn-3.88a-no-interactive.patch 9846 RMD160 b77166b4f4ad5cd179e8c6169c2fefe5abbf238d SHA1 2b46b2a6d4adfbfd7741512535be4fcac64d63b5 SHA256 addc74609d2b2fd94098be7a5d6e8f73ed73db3d5403eea13a8b4abd89f0a8dd
+DIST dawn_3_88a.taz 671747 RMD160 868ec996c27adb95c615ee4a09f018eb3098cf83 SHA1 e57bdfc9ac7fb60c19251071fe1dcbf27af7bd17 SHA256 e3f69bf624757d95542a823bb3bc15919d0f6a3c3ec9c2d52f3a8ef1a31629ec
+EBUILD dawn-3.88a.ebuild 1368 RMD160 9ea8bddb5daf9f8418f113ea7c98ebc831dd30a0 SHA1 d00d44008e51ea28fc5188fc42681c256a2476eb SHA256 633d2be925e3b2298bdd7623ab6649de7eec1165432a91a98f913e8e9d374272
+MISC ChangeLog 251 RMD160 4f942e01f7d78a7992247d081b2716c3f3c771d7 SHA1 277d8b69436ccb1663e070b62cb383de392780d2 SHA256 4e853c0f324699bb17135c83dbeab6b80ed033f9e94398561933e51d7d1309eb
+MISC metadata.xml 157 RMD160 ed43b99e7bf8bbf62cf4e46152138ab42d3a88c5 SHA1 2182a6de0b10959aad51af2990f1a6c69e34dd97 SHA256 750cb9e46ac2b77e1adf73de43c186a8c2d2234a9c6a89d9358d0969dc5cf8ac
diff --git a/media-gfx/dawn/dawn-3.88a.ebuild b/media-gfx/dawn/dawn-3.88a.ebuild
new file mode 100644
index 000000000..2ad30d55e
--- /dev/null
+++ b/media-gfx/dawn/dawn-3.88a.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+#EAPI=0
+inherit eutils versionator
+
+MYP=${PN}_$(replace_version_separator 1 _)
+
+DESCRIPTION="3D geometrical postscript renderer"
+HOMEPAGE="http://geant4.kek.jp/~tanaka/DAWN/About_DAWN.html"
+SRC_URI="http://geant4.kek.jp/~tanaka/src/${MYP}.taz"
+
+LICENSE="public-domain"
+SLOT="0"
+
+KEYWORDS="~amd64 ~x86"
+IUSE="doc opengl X"
+
+RDEPEND="dev-lang/tk
+ X? ( x11-libs/libX11 )
+ opengl? ( virtual/opengl )"
+DEPEND="${RDEPEND}
+ app-shells/tcsh
+ doc? ( virtual/latex-base )"
+
+S="${WORKDIR}/${MYP}"
+
+src_unpack() {
+ ln "${DISTDIR}"/${A} ${MYP}.tar.gz
+ unpack ./${MYP}.tar.gz
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-no-interactive.patch
+ sed -i -e '/strip/d/g' Makefile*in
+}
+
+src_compile() {
+ emake clean
+ emake guiclean
+ if ! use X && ! use opengl; then
+ ./configure_min || die "configure failed"
+ elif ! use opengl; then
+ ./configure_xwin || die "configure_xwin failed"
+ else
+ ./configure || die "configure failed"
+ fi
+ einfo "Compiling"
+ make -j3 || die "emake failed"
+}
+
+src_install() {
+ dodir /usr/bin
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README.txt
+ if use doc; then
+ pdflatex DOC/G4PRIM_FORMAT_24.tex || die "pdf generation failed"
+ insinto /usr/share/doc/${PF}
+ doins DOC/G4PRIM_FORMAT_24.pdf
+ dohtml DOC/*.html
+ fi
+}
diff --git a/media-gfx/dawn/files/dawn-3.88a-no-interactive.patch b/media-gfx/dawn/files/dawn-3.88a-no-interactive.patch
new file mode 100644
index 000000000..81b427e7c
--- /dev/null
+++ b/media-gfx/dawn/files/dawn-3.88a-no-interactive.patch
@@ -0,0 +1,292 @@
+--- configure_min.orig 2008-04-02 22:58:34.504868912 +0100
++++ configure_min 2008-04-02 23:47:56.967829265 +0100
+@@ -13,22 +13,22 @@
+ #----- C++ compiler name
+ echo "Input C++ compiler name (e.g. g++, no default)."
+ echo -n " :"
+-set cpp_compiler=$<
++set cpp_compiler=
+
+ #----- Optimization option of the C++ compiler
+ echo "Input optimization option (e.g. -O2, no default)"
+ echo -n " :"
+-set optimize=$<
++set optimize=
+
+ #----- Input Tcl/Tk window shell name
+ echo "Input Tcl/Tk window shell name"
+ echo -n " (e.g. wish, no default): "
+-set wish=$<
++set wish=wish
+
+ #----- Input directory name to install dawn and DAWN_GUI
+ echo "Input directory to install executable files"
+ echo -n " (e.g. /usr/local/bin, no default ): "
+-set install_dir=$<
++set install_dir=
+
+
+ ##### DELETE #####
+@@ -57,14 +57,14 @@
+
+ echo "### C++ compiler" >> Makefile
+ #echo "ifndef CXX" >> Makefile
+-echo "CC = $cpp_compiler" >> Makefile
++#echo "CC = $cpp_compiler" >> Makefile
+ #echo "else" >> Makefile
+-#echo 'CC = $(CXX)' >> Makefile
++echo 'CC = $(CXX)' >> Makefile
+ #echo "endif" >> Makefile
+ echo "" >> Makefile
+
+ echo "### Optimization" >> Makefile
+-echo "OPTIMIZE = $optimize" >> Makefile
++echo 'OPTIMIZE = $(CXXLFAGS)' >> Makefile
+ echo "" >> Makefile
+
+ echo "### Waring level" >> Makefile
+@@ -78,7 +78,7 @@
+
+
+ echo "### Directory where to install executable files" >> Makefile
+-echo "INSTALL_DIR = $install_dir" >> Makefile
++echo 'INSTALL_DIR = $(DESTDIR)/usr/bin' >> Makefile
+ echo "" >> Makefile
+
+ echo "" >> Makefile
+--- configure.orig 2008-04-02 22:58:23.660250913 +0100
++++ configure 2008-04-03 00:06:20.081610809 +0100
+@@ -17,19 +17,19 @@
+ #----- C++ compiler name
+ echo "Input C++ compiler name (e.g. g++, no default)."
+ echo -n " : "
+-set cpp_compiler=$<
++set cpp_compiler=
+ echo ""
+
+ #----- Optimization option of the C++ compiler
+ echo "Input optimization option (e.g. -O2, no default)"
+ echo -n " : "
+-set optimize=$<
++set optimize=
+ echo ""
+
+ #----- Input Tcl/Tk window shell name
+ echo "Input Tcl/Tk window shell name"
+ echo -n " (e.g. wish, no default): "
+-set wish=$<
++set wish=wish
+ echo ""
+
+ #-----
+@@ -37,7 +37,7 @@
+ echo " (e.g. -I/usr/X11R6/include) "
+ echo " Hit return key if path is already set properly. )"
+ echo -n " : "
+-set xlib_inc=$<
++set xlib_inc=
+ echo ""
+
+
+@@ -46,7 +46,7 @@
+ echo " (e.g. -L/usr/X11R6/lib) "
+ echo " Hit return key if path is already set properly.)"
+ echo -n " : "
+-set xlib_lib=$<
++set xlib_lib=
+ echo ""
+
+
+@@ -55,7 +55,7 @@
+ echo " (e.g. -I/usr/X11R6/include) "
+ echo " Hit return key if path is already set properly. )"
+ echo -n " : "
+-set openglinc=$<
++set openglinc=
+ echo ""
+
+ #-----
+@@ -63,7 +63,7 @@
+ echo " (e.g. -I/usr/X11R6/include/GL "
+ echo " Hit return key if path is already set properly. )"
+ echo -n " : "
+-set openglinc2=$<
++set openglinc2=
+ echo ""
+
+
+@@ -72,24 +72,24 @@
+ echo " (e.g. -L/usr/X11R6/lib "
+ echo " Hit return key if path is already set properly.)"
+ echo -n " : "
+-set opengllib=$<
++set opengllib=
+ echo ""
+
+ #-----
+ echo -n "Select OpenGL/Mesa or old Masa (0: OpenGL/Mesa , 1: Old Mesa (ver.3.0)): "
+-set opengl_type=$<
++set opengl_type=0
+ echo ""
+
+
+ #----- Input directory name to install dawn and DAWN_GUI
+ echo "Input directory to install executable files"
+ echo -n " (e.g. /usr/local/bin, no default ): "
+-set install_dir=$<
++set install_dir=
+ echo ""
+
+ #----- Input system name
+ echo -n "Select a system (0: Defalut, 1: AIX, 2: IRIX, 3: Solaris, 4: RedHat/FedoraCore): "
+-set sysid=$<
++set sysid=0
+ switch ($sysid)
+ case "0":
+ set sysname = "Default"
+@@ -116,7 +116,7 @@
+ echo "Do you use remote-visualization function? (y/n, no default)"
+ echo " (Select n if your compilation fails for FRClientServer.cc)"
+ echo -n " : "
+-set ynflag_socket=$<
++set ynflag_socket=n
+ switch ($ynflag_socket)
+ case "y":
+ set macro_socket = '#define USE_SOCKET'
+@@ -159,14 +159,14 @@
+
+ echo "### C++ compiler" >> Makefile
+ #echo "ifndef CXX" >> Makefile
+-echo "CC = $cpp_compiler" >> Makefile
++#echo "CC = $cpp_compiler" >> Makefile
+ #echo "else" >> Makefile
+-#echo 'CC = $(CXX)' >> Makefile
++echo 'CC = $(CXX)' >> Makefile
+ #echo "endif" >> Makefile
+ echo "" >> Makefile
+
+ echo "### Optimization" >> Makefile
+-echo "OPTIMIZE = $optimize" >> Makefile
++echo 'OPTIMIZE = $(CXXFLAGS)' >> Makefile
+ echo "" >> Makefile
+
+ echo "### Waring level" >> Makefile
+@@ -224,7 +224,7 @@
+ echo "" >> Makefile
+
+ echo "### Directory where to install executable files" >> Makefile
+-echo "INSTALL_DIR = $install_dir" >> Makefile
++echo 'INSTALL_DIR = $(DESTDIR)/usr/bin' >> Makefile
+ echo "" >> Makefile
+
+ echo "### Socket libraries to be linked " >> Makefile
+@@ -313,6 +313,6 @@
+ echo ""
+ echo 'After compilation, type "make install" for installation.'
+ echo 'Then four executable files "dawn", "DAWN_GUI",'
+-echo '"dawnunixd", and "dawninetd" will be installed to '
++echo '"dawnunixd", and "dawninetd" will be installed'
+ echo "$install_dir."
+ echo ""
+--- configure_xwin.orig 2008-04-02 22:58:44.973465484 +0100
++++ configure_xwin 2008-04-03 00:02:15.950190359 +0100
+@@ -16,17 +16,17 @@
+ #----- C++ compiler name
+ echo "Input C++ compiler name (e.g. g++, no default)."
+ echo -n " :"
+-set cpp_compiler=$<
++set cpp_compiler=
+
+ #----- Optimization option of the C++ compiler
+ echo "Input optimization option (e.g. -O2, no default)"
+ echo -n " :"
+-set optimize=$<
++set optimize=
+
+ #----- Input Tcl/Tk window shell name
+ echo "Input Tcl/Tk window shell name"
+ echo -n " (e.g. wish, no default): "
+-set wish=$<
++set wish=wish
+
+
+ #-----
+@@ -34,7 +34,7 @@
+ echo " (e.g. -I/usr/X11R6/include) "
+ echo " Hit return key if path is already set properly. )"
+ echo -n " : "
+-set xlib_inc=$<
++set xlib_inc=
+ echo ""
+
+
+@@ -43,17 +43,17 @@
+ echo " (e.g. -L/usr/X11R6/lib) "
+ echo " Hit return key if path is already set properly.)"
+ echo -n " : "
+-set xlib_lib=$<
++set xlib_lib=
+ echo ""
+
+ #----- Input directory name to install dawn and DAWN_GUI
+ echo "Input directory to install executable files"
+ echo -n " (e.g. /usr/local/bin, no default ): "
+-set install_dir=$<
++set install_dir=
+
+ #----- Input system name
+ echo -n "Select a system (0: Defalut, 1: AIX, 2: IRIX, 3: Solaris, 4: RedHat/FedoraCore): "
+-set sysid=$<
++set sysid=0
+ switch ($sysid)
+ case "0":
+ set sysname = "Default"
+@@ -80,7 +80,7 @@
+ echo "Do you use remote-visualization function? (y/n, no default)"
+ echo " (Select n if your compilation fails for FRClientServer.cc)"
+ echo -n " : "
+-set ynflag_socket=$<
++set ynflag_socket=n
+ switch ($ynflag_socket)
+ case "y":
+ set macro_socket = '#define USE_SOCKET'
+@@ -123,14 +123,14 @@
+
+ echo "### C++ compiler" >> Makefile
+ #echo "ifndef CXX" >> Makefile
+-echo "CC = $cpp_compiler" >> Makefile
++#echo "CC = $cpp_compiler" >> Makefile
+ #echo "else" >> Makefile
+-#echo 'CC = $(CXX)' >> Makefile
++echo 'CC = $(CXX)' >> Makefile
+ #echo "endif" >> Makefile
+ echo "" >> Makefile
+
+ echo "### Optimization" >> Makefile
+-echo "OPTIMIZE = $optimize" >> Makefile
++echo 'OPTIMIZE = $(CXXFLAGS)' >> Makefile
+ echo "" >> Makefile
+
+ echo "### Waring level" >> Makefile
+@@ -152,7 +152,7 @@
+ echo "" >> Makefile
+
+ echo "### Directory where to install executable files" >> Makefile
+-echo "INSTALL_DIR = $install_dir" >> Makefile
++echo 'INSTALL_DIR = $(DESTDIR)/usr/bin' >> Makefile
+ echo "" >> Makefile
+
+ echo "### Socket libraries to be linked " >> Makefile
+--- FRSocketMacro.h.orig 2008-04-02 23:58:51.126518123 +0100
++++ FRSocketMacro.h 2008-04-02 23:59:03.443220012 +0100
+@@ -14,8 +14,8 @@
+ #elif defined SOCKET_REDHAT61
+ #define CLIENT_ADDR_LENGTH socklen_t
+ #else
+- #define CLIENT_ADDR_LENGTH int
+-// #define CLIENT_ADDR_LENGTH size_t
++// #define CLIENT_ADDR_LENGTH int
++ #define CLIENT_ADDR_LENGTH size_t
+ #endif
+
+ //----- gethostname