diff options
author | 2015-10-14 14:49:10 -0700 | |
---|---|---|
committer | 2015-10-14 14:49:10 -0700 | |
commit | ef1506e749bde52f5bf0e079e841342428111f01 (patch) | |
tree | 2c9994e5dd83a1f002ab9672ac9a57ee7d55b833 | |
parent | Add emscripten-fastcomp (diff) | |
download | palmer-ef1506e749bde52f5bf0e079e841342428111f01.tar.gz palmer-ef1506e749bde52f5bf0e079e841342428111f01.tar.bz2 palmer-ef1506e749bde52f5bf0e079e841342428111f01.zip |
Add a Caffe ebuild
There's no "make install" target for Caffe, so I'm not sure if I've
actually installed the right stuff.
-rw-r--r-- | dev-libs/caffe/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/caffe/caffe-1.0.0-r20151014.ebuild | 41 |
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-libs/caffe/Manifest b/dev-libs/caffe/Manifest new file mode 100644 index 0000000..3f8d800 --- /dev/null +++ b/dev-libs/caffe/Manifest @@ -0,0 +1 @@ +EBUILD caffe-1.0.0-r20151014.ebuild 864 SHA256 54f6013fc83105ca9b22442d874df9817a9331264e6a1376807398fef12c9d6e SHA512 26cd5cd7c2d81309fd4efdd7bc3b1a998dd8839bf9ead3b2f6fd2552c491c700669077400e93eb9edf9dd30d4fa1bc0b7a3d2f804ee8f47becb526d7b0caeb5b WHIRLPOOL 264b92525e090e39719d8a6a371d94fb6a70116f99cdee88d2bd6a83a59f3fd4a3ce697dc7fa02affa75bebe9cbedb071c5c90380ef53b447164f4097c5602fc diff --git a/dev-libs/caffe/caffe-1.0.0-r20151014.ebuild b/dev-libs/caffe/caffe-1.0.0-r20151014.ebuild new file mode 100644 index 0000000..3c1bf1f --- /dev/null +++ b/dev-libs/caffe/caffe-1.0.0-r20151014.ebuild @@ -0,0 +1,41 @@ +EAPI="5" + +inherit git-r3 + +DESCRIPTION="caffe deep learning framework" +HOMEPAGE="http://caffe.berkeleyvision.org/" +LICENSE="BSD" +EGIT_REPO_URI="git://github.com/BVLC/caffe.git" +EGIT_COMMIT="8c8e832e71985ba89dcb7c8a60697322c54b5f5b" +EGIT_CLONE_TYPE="single" + +SLOT="1/${PV}" + +DEPEND=">=dev-libs/boost-1.55 + dev-cpp/glog + dev-db/lmdb + app-arch/snappy + sci-libs/hdf5 + dev-libs/leveldb + dev-libs/protobuf + dev-cpp/gflags + atlas? ( sci-libs/atlas )" + +RDEPEND="${DEPEND}" + +IUSE="atlas" + +src_configure() { + cp Makefile.config.example Makefile.config + sed 's@^# CPU_ONLY := 1$@CPU_ONLY := 1@' -i Makefile.config +} + +src_compile() { + emake +} + +src_install() { + mkdir -p "${ED}"/usr/bin + tar -C .build_release -c lib | tar -C "${ED}/usr" -x + cp .build_release/tools/caffe.bin "${ED}"/usr/bin +} |