goby-cpp-2.0.1.ebuild 902 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. AUTOTOOLS_AUTORECONF=yes
  5. inherit autotools-utils
  6. DESCRIPTION="A DNA sequencing data management framework - C/C++ API"
  7. HOMEPAGE="http://campagnelab.org/software/goby/"
  8. SRC_URI="http://chagall.med.cornell.edu/goby/releases/archive/release-goby_${PV}/goby_${PV}-cpp.zip"
  9. LICENSE="GPL-3"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86"
  12. IUSE="static-libs"
  13. DEPEND="
  14. >=dev-libs/protobuf-2.4.1
  15. >=dev-libs/libpcre-8.12"
  16. RDEPEND="${DEPEND}"
  17. S="${WORKDIR}/${PV}/cpp"
  18. PATCHES=(
  19. "${FILESDIR}"/${P}-underlinking.patch
  20. )
  21. src_prepare() {
  22. sed \
  23. -e '/BUILD_TIMESTAMP/s:\(goby/timestamp.h\):$(top_srcdir)/src/\1:g' \
  24. -i src/Makefile.am || die
  25. pushd src/goby > /dev/null || die
  26. cp "${FILESDIR}"/*.proto . || die
  27. protoc --cpp_out=. *.proto || die
  28. popd > /dev/null || die
  29. autotools-utils_src_prepare
  30. }