dynamips-0.2.14-r1.ebuild 816 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit cmake-utils
  5. DESCRIPTION="Cisco 7200/3600 Simulator"
  6. HOMEPAGE="http://www.gns3.net/dynamips/"
  7. SRC_URI="mirror://sourceforge/project/gns-3/Dynamips/${PV}/${P}-source.zip"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE="ipv6"
  12. RDEPEND="dev-libs/elfutils
  13. net-libs/libpcap"
  14. DEPEND="${RDEPEND}
  15. app-arch/unzip"
  16. DOCS=( ChangeLog README RELEASE-NOTES )
  17. S="${WORKDIR}"
  18. PATCHES=( "${FILESDIR}/${PV}-docs.patch" )
  19. src_prepare() {
  20. # comment out DYNAMIPS_FLAGS to respect CFLAGS
  21. sed -e "s:^set ( DYNAMIPS_FLAGS:#&:" -i cmake/dependencies.cmake || die
  22. cmake-utils_src_prepare
  23. }
  24. src_configure() {
  25. local mycmakeargs=(
  26. $(cmake-utils_use_enable ipv6 IPV6)
  27. )
  28. cmake-utils_src_configure
  29. }