cvsps-2.2_beta1.ebuild 958 B

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