cvsps-2.1-r1.ebuild 937 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit eutils toolchain-funcs
  4. MY_P="${P/_/}"
  5. DESCRIPTION="Generates patchset information from a CVS repository"
  6. HOMEPAGE="http://www.cobite.com/cvsps/"
  7. SRC_URI="http://www.cobite.com/cvsps/${MY_P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
  11. IUSE=""
  12. DEPEND="sys-libs/zlib"
  13. RDEPEND="${DEPEND}"
  14. S="${WORKDIR}/${MY_P}"
  15. src_unpack() {
  16. unpack ${A}
  17. cd "${S}"
  18. epatch "${FILESDIR}"/${P}-build.patch
  19. epatch "${FILESDIR}"/${P}-solaris.patch
  20. # no configure around
  21. if [[ ${CHOST} == *-solaris* ]] ; then
  22. sed -i -e '/^LDLIBS+=/s/$/ -lsocket/' Makefile || die
  23. fi
  24. tc-export CC
  25. }
  26. src_install() {
  27. dobin cvsps || die
  28. doman cvsps.1
  29. dodoc README CHANGELOG
  30. }