summaryrefslogtreecommitdiff
blob: 1b97a32993a0ebbfbb09cc03f12934cc405eceec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit toolchain-funcs

DESCRIPTION="Cygwin Encryption/Decryption utility and library"
HOMEPAGE="https://sourceware.org/cygwin-apps/"
# Upstream provides the git repo only, so we do:
#  git clone git://cygwin.com/git/cygwin-apps/crypt.git
#  cd crypt
#  git archive -o cygwin-crypt-${PV}.tar --prefix=cygwin-crypt-${PV}/ crypt-${PV}-release
#  bzip2 cygwin-crypt-${PV}.tar
SRC_URI="mirror://gentoo/${P}.tar.bz2"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~x64-cygwin ~x86-cygwin"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

mymake() {
	emake \
		CC="$(tc-getCC)" \
		AR="$(tc-getAR)" \
		CFLAGS="${CFLAGS}" \
		prefix="${EPREFIX}/usr" \
		docdir="${EPREFIX}/share/doc/${P}" \
		"$@"
}

src_compile() {
	mymake
}

src_install() {
	mymake install DESTDIR="${D}"
}