summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2015-05-17 15:34:29 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2015-05-17 15:34:29 -0700
commitaea72d5093200c2f170bf949b0bc441cc779885f (patch)
tree2e53c52e0c764706c498c285a23cbcb3cd09bdb3 /sci-electronics/chisel/chisel-2.2.22.ebuild
parentKEYWORD pconfigure for arm (diff)
downloadpalmer-aea72d5093200c2f170bf949b0bc441cc779885f.tar.gz
palmer-aea72d5093200c2f170bf949b0bc441cc779885f.tar.bz2
palmer-aea72d5093200c2f170bf949b0bc441cc779885f.zip
Bump chisel to 2.2.22
Diffstat (limited to 'sci-electronics/chisel/chisel-2.2.22.ebuild')
-rw-r--r--sci-electronics/chisel/chisel-2.2.22.ebuild73
1 files changed, 73 insertions, 0 deletions
diff --git a/sci-electronics/chisel/chisel-2.2.22.ebuild b/sci-electronics/chisel/chisel-2.2.22.ebuild
new file mode 100644
index 0000000..a64c3cb
--- /dev/null
+++ b/sci-electronics/chisel/chisel-2.2.22.ebuild
@@ -0,0 +1,73 @@
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="A HDL"
+HOMEPAGE="http://github.com/ucb-bar/${PN}/"
+SRC_URI="https://github.com/ucb-bar/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/$PV"
+KEYWORDS="amd64 amd64-linux"
+IUSE=""
+
+RDEPEND="dev-java/sbt-bin
+ dev-lang/scala"
+
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ cat >Configfile <<EOF
+PREFIX = ${EPREFIX}/usr
+
+LANGUAGES += scala
+LANGUAGES += pkgconfig
+LANGUAGES += h
+LANGUAGES += bash
+
+LIBRARIES += libchisel.jar
+SOURCES += main/scala/Driver.scala
+
+LIBRARIES += pkgconfig/chisel.pc
+SOURCES += chisel.pc
+
+HEADERS += chisel/emulator.h
+SOURCES += main/resources/emulator.h
+
+HEADERS += chisel/emulator_mod.h
+SOURCES += main/resources/emulator_mod.h
+
+HEADERS += chisel/emulator_api.h
+SOURCES += main/resources/emulator_api.h
+
+BINARIES += chisel-hdrtar
+SOURCES += chisel-hdrtar.bash
+
+BINARIES += chisel-jargen
+SOURCES += chisel-jargen.bash
+EOF
+
+ cat > src/chisel.pc <<EOF
+prefix=@@pconfigure_prefix@@
+exec_prefix=@@pconfigure_prefix@@
+libdir=\${prefix}/@@pconfigure_libdir@@
+includedir=\${prefix}/@@pconfigure_hdrdir@@
+
+Name: chisel
+Description: A HDL
+Version: $PV
+Libs: -lchisel
+Cflags: -I\${includedir}/chisel
+URL: http://github.com/ucb-bar/chisel
+EOF
+
+ cat >src/chisel-jargen.bash <<EOF
+cat ${EPREFIX}/usr/lib/libchisel.jar
+EOF
+
+ cat >src/chisel-hdrtar.bash <<EOF
+tar -C ${EPREFIX}/usr/include/chisel -c .
+EOF
+
+ pconfigure
+}