Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/cvsync/
Date: Sun, 28 Feb 2016 04:48:21
Message-Id: 1456634764.b8e318c5074826b0f02e47393a80b8df8e25f4c5.vapier@gentoo
1 commit: b8e318c5074826b0f02e47393a80b8df8e25f4c5
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 00:37:36 2016 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 04:46:04 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8e318c5
7
8 dev-vcs/cvsync: initial pkg by me
9
10 dev-vcs/cvsync/Manifest | 1 +
11 dev-vcs/cvsync/cvsync-2014.08.24.014706.ebuild | 82 ++++++++++++++++++++++++++
12 dev-vcs/cvsync/cvsync-9999.ebuild | 82 ++++++++++++++++++++++++++
13 dev-vcs/cvsync/metadata.xml | 16 +++++
14 4 files changed, 181 insertions(+)
15
16 diff --git a/dev-vcs/cvsync/Manifest b/dev-vcs/cvsync/Manifest
17 new file mode 100644
18 index 0000000..f293824
19 --- /dev/null
20 +++ b/dev-vcs/cvsync/Manifest
21 @@ -0,0 +1 @@
22 +DIST cvsync-2014.08.24.014706.tar.xz 94820 SHA256 ddb753a03c2e80e9507cb971a1ff0c682e353eb36737189457d6e8e507a04467 SHA512 8aa05d3e2459a14e6abe48eb13b7130aa0bdba7bc9e3604b8406622541450349c233bf43f11804d3820567f882335e1079a9fb747e1d1b8a5d93325bf4e97158 WHIRLPOOL 23ad6ce402f4b3785b0c365b7cc181bf88ed118316e1217034e477b6637d019aee72b149e1cd6d5a1fc0b27773d021d15e202e67c7e76296a69f92ab45e7bb93
23
24 diff --git a/dev-vcs/cvsync/cvsync-2014.08.24.014706.ebuild b/dev-vcs/cvsync/cvsync-2014.08.24.014706.ebuild
25 new file mode 100644
26 index 0000000..7013e77
27 --- /dev/null
28 +++ b/dev-vcs/cvsync/cvsync-2014.08.24.014706.ebuild
29 @@ -0,0 +1,82 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI="5"
35 +
36 +inherit toolchain-funcs
37 +
38 +if [[ ${PV} == "9999" ]] ; then
39 + EGIT_REPO_URI="https://github.com/cvsync/cvsync.git"
40 + inherit git-2
41 +else
42 + SRC_URI="mirror://gentoo/${P}.tar.xz"
43 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
44 +fi
45 +
46 +DESCRIPTION="portable CVS repository synchronization utility"
47 +HOMEPAGE="https://github.com/cvsync/cvsync"
48 +
49 +LICENSE="BSD"
50 +SLOT="0"
51 +IUSE="gcrypt mhash +openssl"
52 +REQUIRED_USE="!openssl? ( ^^ ( gcrypt mhash ) )"
53 +
54 +RDEPEND="sys-libs/zlib
55 + openssl? ( dev-libs/openssl:0= )
56 + !openssl? (
57 + gcrypt? ( dev-libs/libgcrypt:0= )
58 + mhash? ( app-crypt/mhash )
59 + )"
60 +DEPEND="${RDEPEND}"
61 +
62 +S="${WORKDIR}/${PN}"
63 +
64 +maint_pkg_create() {
65 + cd "${S}"
66 + local ver=$(date --date="$(git log -n1 --pretty=format:%ci HEAD)" -u "+%Y.%m.%d.%H%M%S")
67 + local tar="${T}/${PN}-${ver}.tar.xz"
68 + git archive --prefix "${PN}/" HEAD | xz > "${tar}" || die "creating tar failed"
69 + einfo "Packaged tar now available:"
70 + einfo "$(du -b "${tar}")"
71 +}
72 +
73 +src_unpack() {
74 + if [[ ${PV} == "9999" ]] ; then
75 + git-2_src_unpack
76 + maint_pkg_create
77 + else
78 + default
79 + fi
80 +}
81 +
82 +_emake() {
83 + # USE flag settings are enforced by REQUIRED_USE.
84 + local hash=$(usex openssl openssl $(usex gcrypt gcrypt mhash))
85 +
86 + # Probably want to expand this at some point.
87 + local host_os="Linux"
88 +
89 + emake \
90 + CC="$(tc-getCC)" \
91 + ECHO="echo" \
92 + TEST="test" \
93 + INSTALL="install" \
94 + HASH_TYPE="${hash}" \
95 + HOST_OS="${host_os}" \
96 + BINOWN="$(id -u)" \
97 + BINGRP="$(id -g)" \
98 + BINDIR="\$(PREFIX)/usr/bin" \
99 + MANDIR="\$(PREFIX)/usr/share/man" \
100 + "$@"
101 +}
102 +
103 +src_compile() {
104 + _emake PREFIX="${EPREFIX}"
105 +}
106 +
107 +src_install() {
108 + dodir /usr/bin /usr/share/man/man1
109 + _emake PREFIX="${ED}" install
110 + dodoc samples/*.conf
111 +}
112
113 diff --git a/dev-vcs/cvsync/cvsync-9999.ebuild b/dev-vcs/cvsync/cvsync-9999.ebuild
114 new file mode 100644
115 index 0000000..7013e77
116 --- /dev/null
117 +++ b/dev-vcs/cvsync/cvsync-9999.ebuild
118 @@ -0,0 +1,82 @@
119 +# Copyright 1999-2016 Gentoo Foundation
120 +# Distributed under the terms of the GNU General Public License v2
121 +# $Id$
122 +
123 +EAPI="5"
124 +
125 +inherit toolchain-funcs
126 +
127 +if [[ ${PV} == "9999" ]] ; then
128 + EGIT_REPO_URI="https://github.com/cvsync/cvsync.git"
129 + inherit git-2
130 +else
131 + SRC_URI="mirror://gentoo/${P}.tar.xz"
132 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
133 +fi
134 +
135 +DESCRIPTION="portable CVS repository synchronization utility"
136 +HOMEPAGE="https://github.com/cvsync/cvsync"
137 +
138 +LICENSE="BSD"
139 +SLOT="0"
140 +IUSE="gcrypt mhash +openssl"
141 +REQUIRED_USE="!openssl? ( ^^ ( gcrypt mhash ) )"
142 +
143 +RDEPEND="sys-libs/zlib
144 + openssl? ( dev-libs/openssl:0= )
145 + !openssl? (
146 + gcrypt? ( dev-libs/libgcrypt:0= )
147 + mhash? ( app-crypt/mhash )
148 + )"
149 +DEPEND="${RDEPEND}"
150 +
151 +S="${WORKDIR}/${PN}"
152 +
153 +maint_pkg_create() {
154 + cd "${S}"
155 + local ver=$(date --date="$(git log -n1 --pretty=format:%ci HEAD)" -u "+%Y.%m.%d.%H%M%S")
156 + local tar="${T}/${PN}-${ver}.tar.xz"
157 + git archive --prefix "${PN}/" HEAD | xz > "${tar}" || die "creating tar failed"
158 + einfo "Packaged tar now available:"
159 + einfo "$(du -b "${tar}")"
160 +}
161 +
162 +src_unpack() {
163 + if [[ ${PV} == "9999" ]] ; then
164 + git-2_src_unpack
165 + maint_pkg_create
166 + else
167 + default
168 + fi
169 +}
170 +
171 +_emake() {
172 + # USE flag settings are enforced by REQUIRED_USE.
173 + local hash=$(usex openssl openssl $(usex gcrypt gcrypt mhash))
174 +
175 + # Probably want to expand this at some point.
176 + local host_os="Linux"
177 +
178 + emake \
179 + CC="$(tc-getCC)" \
180 + ECHO="echo" \
181 + TEST="test" \
182 + INSTALL="install" \
183 + HASH_TYPE="${hash}" \
184 + HOST_OS="${host_os}" \
185 + BINOWN="$(id -u)" \
186 + BINGRP="$(id -g)" \
187 + BINDIR="\$(PREFIX)/usr/bin" \
188 + MANDIR="\$(PREFIX)/usr/share/man" \
189 + "$@"
190 +}
191 +
192 +src_compile() {
193 + _emake PREFIX="${EPREFIX}"
194 +}
195 +
196 +src_install() {
197 + dodir /usr/bin /usr/share/man/man1
198 + _emake PREFIX="${ED}" install
199 + dodoc samples/*.conf
200 +}
201
202 diff --git a/dev-vcs/cvsync/metadata.xml b/dev-vcs/cvsync/metadata.xml
203 new file mode 100644
204 index 0000000..d32f150
205 --- /dev/null
206 +++ b/dev-vcs/cvsync/metadata.xml
207 @@ -0,0 +1,16 @@
208 +<?xml version="1.0" encoding="UTF-8"?>
209 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
210 +<pkgmetadata>
211 +<maintainer type="person">
212 + <email>vapier@g.o</email>
213 + <description>feel free to update</description>
214 +</maintainer>
215 +<use>
216 + <flag name="gcrypt">Use <pkg>dev-libs/libgcrypt</pkg> for hash functions.</flag>
217 + <flag name="mhash">Use <pkg>app-crypt/mhash</pkg> for hash functions.</flag>
218 + <flag name="openssl">Use <pkg>dev-libs/openssl</pkg> for hash functions.</flag>
219 +</use>
220 +<upstream>
221 + <remote-id type="github">cvsync/cvsync</remote-id>
222 +</upstream>
223 +</pkgmetadata>