newton-3.13.ebuild 828 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils toolchain-funcs cmake-utils unpacker
  5. MY_P="${PN}-dynamics-${P}"
  6. DESCRIPTION="an integrated solution for real time simulation of physics environments"
  7. HOMEPAGE="http://newtondynamics.com/forum/newton.php"
  8. SRC_URI="https://github.com/MADEAPPS/newton-dynamics/archive/${P}.zip"
  9. LICENSE="ZLIB"
  10. SLOT="0"
  11. KEYWORDS="amd64 x86"
  12. IUSE=""
  13. RDEPEND=""
  14. DEPEND="$(unpacker_src_uri_depends)"
  15. S=${WORKDIR}/${MY_P}
  16. src_prepare() {
  17. sed -i -e '/packages/d' CMakeLists.txt || die
  18. cmake-utils_src_prepare
  19. }
  20. src_configure() {
  21. local mycmakeargs=(
  22. -DCMAKE_INSTALL_PREFIX=/usr/
  23. -DNEWTON_DEMOS_SANDBOX=OFF
  24. -DCMAKE_VERBOSE_MAKEFILE=ON
  25. )
  26. cmake-utils_src_configure
  27. }
  28. src_compile() {
  29. cmake-utils_src_install
  30. }