summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2014-11-20 14:15:29 -0800
committerPalmer Dabbelt <palmer@dabbelt.com>2014-11-20 14:15:29 -0800
commitb8ad3b36461ba07c04c35490ac9376491a481908 (patch)
treee5a9e4de2a5c0f33fd57bee2d7c7e77aeb73137b
parentMake rocket-uncore slot depend on Chisel (diff)
downloadpalmer-b8ad3b36461ba07c04c35490ac9376491a481908.tar.gz
palmer-b8ad3b36461ba07c04c35490ac9376491a481908.tar.bz2
palmer-b8ad3b36461ba07c04c35490ac9376491a481908.zip
Add berkeley-hardfloat
-rw-r--r--sci-electronics/berkeley-hardfloat/Manifest2
-rw-r--r--sci-electronics/berkeley-hardfloat/berkeley-hardfloat-0.0.1.ebuild52
2 files changed, 54 insertions, 0 deletions
diff --git a/sci-electronics/berkeley-hardfloat/Manifest b/sci-electronics/berkeley-hardfloat/Manifest
new file mode 100644
index 0000000..cd045bc
--- /dev/null
+++ b/sci-electronics/berkeley-hardfloat/Manifest
@@ -0,0 +1,2 @@
+DIST berkeley-hardfloat-0.0.1.tar.gz 11983 SHA256 7c03b1e6674ddce346a369f2d0dd38d610bf8de17f7937ff681369402e0f883b SHA512 6e10a8f73d17e63803f7daa3a97b3e17e0feb5a54ad1f475402dc15571c3ddd155234812831fa5f90c099e90d5c66ff10d3a36bd5b51f8b301526380a22ebebd WHIRLPOOL 0fdff3ef8211712435e368b8e481c4078fba205fa8438df0c9558b72b8e76a4ad79abaf55f119750637d863022f8d1e7b03de513e4791221f37288d3be9e3f9c
+EBUILD berkeley-hardfloat-0.0.1.ebuild 1021 SHA256 d23ec0cbc106f44d8a00c2af5c94c2bf67f5a4004ca765cd561b0ceb4488e93f SHA512 5ab4650bc7857c14ba8e170013019d2aff3af05ef7612781e2089e2fa504a7bd30863263ed3198a36ba26ba15cff672ccfadb8af8e976a2f09639a2e76767b1a WHIRLPOOL 0ebba0bc084ba78c300a5aae629409574e18065233aeaef429fc48160580dc8f46b979971a42fce14d6a2b440454a514100279f4dc6f2364c6a853521bde124d
diff --git a/sci-electronics/berkeley-hardfloat/berkeley-hardfloat-0.0.1.ebuild b/sci-electronics/berkeley-hardfloat/berkeley-hardfloat-0.0.1.ebuild
new file mode 100644
index 0000000..89e9f31
--- /dev/null
+++ b/sci-electronics/berkeley-hardfloat/berkeley-hardfloat-0.0.1.ebuild
@@ -0,0 +1,52 @@
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="A HDL"
+HOMEPAGE="http://github.com/palmer-dabbelt/${PN}/"
+SRC_URI="https://github.com/palmer-dabbelt/${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}
+ sci-electronics/chisel:="
+
+src_configure() {
+ cat >Configfile <<EOF
+PREFIX = ${EPREFIX}/usr
+
+LANGUAGES += scala
+LANGUAGES += pkgconfig
+LANGUAGES += h
+LANGUAGES += bash
+
+LIBRARIES += lib${PN}.jar
+COMPILEOPTS += `ppkg-config chisel --libs`
+SOURCES += main/scala/consts.scala
+
+LIBRARIES += pkgconfig/${PN}.pc
+SOURCES += ${PN}.pc
+EOF
+
+ cat > src/${PN}.pc <<EOF
+prefix=@@pconfigure_prefix@@
+exec_prefix=@@pconfigure_prefix@@
+libdir=\${prefix}/@@pconfigure_libdir@@
+includedir=\${prefix}/@@pconfigure_hdrdir@@
+
+Name: ${PN}
+Description: UC Berkeley's hardware floating point library
+Version: $PV
+Libs: -l${PN}
+Requires: chisel
+URL: http://github.com/ucb-bar/${PN}
+EOF
+
+ pconfigure
+}