summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2003-12-04 05:20:25 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2003-12-04 05:20:25 +0000
commit0ae15bdc80f0761fbe9211881b561346761fdb2d (patch)
tree3290bee1cd43983948fff435e5f498336836c720 /app-sci/xfoil
parentinitial ebuild by robbat2@gentoo.org (diff)
downloadhistorical-0ae15bdc80f0761fbe9211881b561346761fdb2d.tar.gz
historical-0ae15bdc80f0761fbe9211881b561346761fdb2d.tar.bz2
historical-0ae15bdc80f0761fbe9211881b561346761fdb2d.zip
initial ebuild by robbat2@gentoo.org
Diffstat (limited to 'app-sci/xfoil')
-rw-r--r--app-sci/xfoil/Manifest4
-rw-r--r--app-sci/xfoil/files/digest-xfoil-6.943
-rw-r--r--app-sci/xfoil/metadata.xml8
-rw-r--r--app-sci/xfoil/xfoil-6.94.ebuild59
4 files changed, 73 insertions, 1 deletions
diff --git a/app-sci/xfoil/Manifest b/app-sci/xfoil/Manifest
index b8fc8ec7c673..c2d29539b41e 100644
--- a/app-sci/xfoil/Manifest
+++ b/app-sci/xfoil/Manifest
@@ -1,2 +1,4 @@
-MD5 871684967ff94a967baec4ccf53748e1 xfoil-6.94.ebuild 1630
+MD5 7e0d590af77563139efddcdef5921c0a xfoil-6.94.ebuild 1723
+MD5 73e1087bf4626f0cfc69e5870071cf65 ChangeLog 347
+MD5 f9b985eff5cf629c334273be8fbdee5c metadata.xml 219
MD5 bd6eb26fc81bfc9a42aa998d36043598 files/digest-xfoil-6.94 175
diff --git a/app-sci/xfoil/files/digest-xfoil-6.94 b/app-sci/xfoil/files/digest-xfoil-6.94
new file mode 100644
index 000000000000..1b884e2be6b0
--- /dev/null
+++ b/app-sci/xfoil/files/digest-xfoil-6.94
@@ -0,0 +1,3 @@
+MD5 79e1d6bdb445d0e3ba60338e56e3e420 xfoil694.tar.gz 435936
+MD5 6a3cbfcc2dd6943317d6590a57dcd77f xfoil_doc.ps 304400
+MD5 ffdcc3ad6cf4466dd40c7753b0806177 xfoil_doc.pdf 311472
diff --git a/app-sci/xfoil/metadata.xml b/app-sci/xfoil/metadata.xml
new file mode 100644
index 000000000000..2ba90ab6f5c5
--- /dev/null
+++ b/app-sci/xfoil/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<maintainer>
+ <email>robbat2@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-sci/xfoil/xfoil-6.94.ebuild b/app-sci/xfoil/xfoil-6.94.ebuild
new file mode 100644
index 000000000000..85862587ab69
--- /dev/null
+++ b/app-sci/xfoil/xfoil-6.94.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/xfoil/xfoil-6.94.ebuild,v 1.1 2003/12/04 05:20:23 robbat2 Exp $
+
+inherit gcc
+
+MY_PN="${PN}"
+MY_PN_upper="`echo ${PN} | tr '[:lower:]' '[:upper:]'`"
+MY_PV="${PV/./}"
+MY_P="${MY_PN}${MY_PV}"
+MY_P_upper="${MY_PN_upper}${MY_PV}"
+
+DESCRIPTION="XFOIL - design and analysis of subsonic isolated airfoils"
+HOMEPAGE="http://raphael.mit.edu/xfoil/"
+SRC_FILE="${MY_P}.tar.gz"
+SRC_URI="${HOMEPAGE}/${SRC_FILE} doc? ( ${HOMEPAGE}/xfoil_doc.ps ${HOMEPAGE}/xfoil_doc.pdf )"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+DEPEND="app-sci/blas
+ x11-base/xfree"
+#RDEPEND=""
+S=${WORKDIR}/${MY_P_upper}
+
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ [ -z "$FC" ] && FC=g77 # because gcc-config doesn't do it yet
+ [ -z "${FFLAGS}" ] && FFLAGS="${CFLAGS}" # because gcc-config doesn't do it yet
+ echo "CC = ${CC}" >>plotlib/config.make
+ echo "FC = ${FC}" >>plotlib/config.make
+ echo "CFLAGS += ${CFLAGS}" >>plotlib/config.make
+ echo "FFLAGS += ${FFLAGS}" >>plotlib/config.make
+ sed -i bin/Makefile \
+ -e "s/^\(FC.*\)/FC = ${FC}/g" \
+ -e "s/^\(CC.*\)/CC = ${CC}/g" \
+ -e "s/^\(FFLAGS .*\)/FFLAGS = ${FFLAGS}/g" \
+ -e "s/^\(FFLOPT .*\)/FFLOPT = \$(FFLAGS)/g" \
+ -e "s/^\(FFLAGS2 .*\)/FFLAGS2 = \$(FFLAGS)/g"
+}
+
+src_compile() {
+ cd ${S}/plotlib
+ emake || die "failed to build plotlib"
+ cd ${S}/bin
+ for i in xfoil pplot pxplot; do
+ emake ${i} || die "failed to build ${i}"
+ done
+}
+
+src_install() {
+ dobin bin/pplot bin/pxplot bin/xfoil
+ dodoc version_notes.txt xfoil_doc.txt sessions.txt README
+ use doc && dodoc ${DISTDIR}/xfoil_doc.ps ${DISTDIR}/xfoil_doc.pdf
+ docinto runs
+ dodoc runs/*
+}