summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen, Chih-Chia <pigfoot@gmail.com>2019-10-14 19:15:51 +0800
committerChen, Chih-Chia <pigfoot@gmail.com>2019-10-14 19:15:51 +0800
commitb439e54f74a85b8500b762522f2a8abc1ec5cf0f (patch)
treee0e5229c496ff83ba5789e52a8b461314bb327fe
parent[net-misc/curlie] refine#4 (diff)
downloadpigfoot-b439e54f74a85b8500b762522f2a8abc1ec5cf0f.tar.gz
pigfoot-b439e54f74a85b8500b762522f2a8abc1ec5cf0f.tar.bz2
pigfoot-b439e54f74a85b8500b762522f2a8abc1ec5cf0f.zip
[net-misc/curlie] refine#5
Signed-off-by: Chen, Chih-Chia <pigfoot@gmail.com>
-rw-r--r--net-misc/curlie/Manifest1
-rw-r--r--net-misc/curlie/curlie-1.2.0.ebuild26
2 files changed, 14 insertions, 13 deletions
diff --git a/net-misc/curlie/Manifest b/net-misc/curlie/Manifest
index 592bf71..fa08427 100644
--- a/net-misc/curlie/Manifest
+++ b/net-misc/curlie/Manifest
@@ -1,3 +1,4 @@
+DIST curlie-1.2.0.tar.gz 439226 BLAKE2B fe409b30cd23e76c4e01094004c91cbe427dcad8acbbb8aff0eec0d324bca74ed4f8b190a00119daea019ccc60e79794686a5f42e42ef49e63cec8b115879d33 SHA512 41494e44a30cd5df8fecac9a3097405001191b975f6cec7486d676f312ea4cdfb111a55d1278162c1b7dbf46c1d414adc80d561d1d566cee0f66238bfa76a5e1
DIST github.com-akamensky-argparse-99676ba18cd5c0c3b331a13801ccd2b5c16a9259.tar.gz 16835 BLAKE2B 5d7afa821683e370d541aaa2c6d5bd2d3e9127baeb2971898f3aff20c4ec4117140103ff589ca5c30f97add33308e744d4354f91ba974fe0b8f19661b720d8fc SHA512 1c28ebda54a461a7b992a1ad1f6fbfa58ccb99f19cc306180b959a7abd42651c360f826bb776838eb120fb18b08433cda0e4a8b175572bfe4d04afb55f95a3c4
DIST github.com-golang-crypto-159ae71589f303f9fbfd7528413e0fe944b9c1cb.tar.gz 1610335 BLAKE2B d2413c64c4c475e4ea89ba7165dd41fe0dea35ecb5b64cda5fe19ba14c1fc275f427d33f391313675185c8ac92aa160cd605420c1aa0d079f992bfe6938246f8 SHA512 4e10a3eab52330f7ddfd90eaabb3e8fef50c549997aba1231f093626d717d5d8d6ecd1ccd280519f71fe4111a40651618fa590df1a8d313a1b3f7d99138b16c3
DIST github.com-golang-sys-31355384c89b50e6faeffdb36f64a77a8210188e.tar.gz 971577 BLAKE2B f3dc0fef711c131827c56ce9438a6135bed75bd3916eb57bbf5eac19ef3436de64fb8aee8258276acc20832bd1d07da223e4c7483c04827d3ab61840d3a8284f SHA512 f4c0a184450b62bc7c035049548807b5beb218d24cf5efa9d78d7b12e8d38c376425594064df5d8270736452b577dbf544e5462dacd2f1b6257627c8949beefe
diff --git a/net-misc/curlie/curlie-1.2.0.ebuild b/net-misc/curlie/curlie-1.2.0.ebuild
index 3d5c916..a889843 100644
--- a/net-misc/curlie/curlie-1.2.0.ebuild
+++ b/net-misc/curlie/curlie-1.2.0.ebuild
@@ -14,28 +14,28 @@ EGO_VENDOR=(
inherit golang-build golang-vcs-snapshot
DESCRIPTION="The power of curl, the ease of use of httpie, written in GoLang"
-SRC_URI="${ARCHIVE_URI} ${EGO_VENDOR_URI}"
+ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ ${EGO_VENDOR_URI}"
+SRC_URI="${ARCHIVE_URI}"
RESTRICT="mirror"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm"
IUSE="pie"
-DEPEND+="pie? ( >=sys-devel/gcc-4.8.4[go] )"
src_compile() {
- if use pie; then
- CGO_ENABLED=1
- _build_pie="-buildmode=pie"
- else
- CGO_ENABLED=0
- fi
-
- EGO_BUILD_FLAGS+="$( echo ${_build_pie} )"
-
- golang-build_src_compile
+ use pie && local build_pie="-buildmode=pie"
+ local build_flags="$( echo ${EGO_BUILD_FLAGS} ) $( echo ${build_pie} )"
+
+ set -- env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
+ GOCACHE="${T}/go-cache" \
+ CGO_ENABLED=0 \
+ go build -v -work -x ${build_flags} "${EGO_PN}"
+ echo "$@"
+ "$@" || die
}
src_install() {
- dobin curlie
+ dobin ${PN}
}