1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit toolchain-funcs
9 if [[ ${PV} == "9999" ]] ; then
10 EGIT_REPO_URI="https://github.com/cvsync/cvsync.git"
13 SRC_URI="mirror://gentoo/${P}.tar.xz"
14 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
17 DESCRIPTION="portable CVS repository synchronization utility"
18 HOMEPAGE="https://github.com/cvsync/cvsync"
22 IUSE="gcrypt mhash +openssl"
23 REQUIRED_USE="!openssl? ( ^^ ( gcrypt mhash ) )"
25 RDEPEND="sys-libs/zlib
26 openssl? ( dev-libs/openssl:0= )
28 gcrypt? ( dev-libs/libgcrypt:0= )
29 mhash? ( app-crypt/mhash )
37 local ver=$(date --date="$(git log -n1 --pretty=format:%ci HEAD)" -u "+%Y.%m.%d.%H%M%S")
38 local tar="${T}/${PN}-${ver}.tar.xz"
39 git archive --prefix "${PN}/" HEAD | xz > "${tar}" || die "creating tar failed"
40 einfo "Packaged tar now available:"
41 einfo "$(du -b "${tar}")"
45 if [[ ${PV} == "9999" ]] ; then
54 # USE flag settings are enforced by REQUIRED_USE.
55 local hash=$(usex openssl openssl $(usex gcrypt gcrypt mhash))
57 # Probably want to expand this at some point.
66 HOST_OS="${host_os}" \
69 BINDIR="\$(PREFIX)/usr/bin" \
70 MANDIR="\$(PREFIX)/usr/share/man" \
75 _emake PREFIX="${EPREFIX}"
79 dodir /usr/bin /usr/share/man/man1
80 _emake PREFIX="${ED}" install