summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpin <pin@pkgsrc.org>2020-10-26 07:45:55 +0000
committerpin <pin@pkgsrc.org>2020-10-26 07:45:55 +0000
commitafe64f269964000be8ee1677587c0e9da2b0870d (patch)
tree8400c10d506ee8e60416ba3aaf1d8be6d79076cc
parentf47431915946b1e5c80fa41ecff77fee2334ddd9 (diff)
downloadpkgsrc-afe64f269964000be8ee1677587c0e9da2b0870d.tar.gz
net/phetch: simplify Makefile
Simplify Makefile by adding cargo-depends.mk file
-rw-r--r--net/phetch/Makefile50
-rw-r--r--net/phetch/cargo-depends.mk47
2 files changed, 50 insertions, 47 deletions
diff --git a/net/phetch/Makefile b/net/phetch/Makefile
index a6463db36d3..b1a4720dcb7 100644
--- a/net/phetch/Makefile
+++ b/net/phetch/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2020/10/22 09:50:24 pin Exp $
+# $NetBSD: Makefile,v 1.8 2020/10/26 07:45:55 pin Exp $
DISTNAME= phetch-1.0.7
CATEGORIES= net
@@ -10,53 +10,9 @@ HOMEPAGE= https://github.com/xvxx/phetch/
COMMENT= Quick lil gopher client for your terminal
LICENSE= mit
-USE_LANGUAGES+= c # rust, but needs a toolchain to link
+.include "cargo-depends.mk"
-CARGO_CRATE_DEPENDS+= atty-0.2.14
-CARGO_CRATE_DEPENDS+= autocfg-0.1.7
-CARGO_CRATE_DEPENDS+= bitflags-1.2.1
-CARGO_CRATE_DEPENDS+= byteorder-1.3.2
-CARGO_CRATE_DEPENDS+= c2-chacha-0.2.3
-CARGO_CRATE_DEPENDS+= cc-1.0.48
-CARGO_CRATE_DEPENDS+= cfg-if-0.1.10
-CARGO_CRATE_DEPENDS+= core-foundation-0.6.4
-CARGO_CRATE_DEPENDS+= core-foundation-sys-0.6.2
-CARGO_CRATE_DEPENDS+= foreign-types-0.3.2
-CARGO_CRATE_DEPENDS+= foreign-types-shared-0.1.1
-CARGO_CRATE_DEPENDS+= getrandom-0.1.13
-CARGO_CRATE_DEPENDS+= hermit-abi-0.1.6
-CARGO_CRATE_DEPENDS+= lazy_static-1.4.0
-CARGO_CRATE_DEPENDS+= libc-0.2.66
-CARGO_CRATE_DEPENDS+= log-0.4.8
-CARGO_CRATE_DEPENDS+= native-tls-0.2.3
-CARGO_CRATE_DEPENDS+= numtoa-0.1.0
-CARGO_CRATE_DEPENDS+= openssl-0.10.26
-CARGO_CRATE_DEPENDS+= openssl-probe-0.1.2
-CARGO_CRATE_DEPENDS+= openssl-sys-0.9.53
-CARGO_CRATE_DEPENDS+= pkg-config-0.3.17
-CARGO_CRATE_DEPENDS+= ppv-lite86-0.2.6
-CARGO_CRATE_DEPENDS+= rand-0.7.2
-CARGO_CRATE_DEPENDS+= rand_chacha-0.2.1
-CARGO_CRATE_DEPENDS+= rand_core-0.5.1
-CARGO_CRATE_DEPENDS+= rand_hc-0.2.0
-CARGO_CRATE_DEPENDS+= redox_syscall-0.1.56
-CARGO_CRATE_DEPENDS+= redox_termios-0.1.1
-CARGO_CRATE_DEPENDS+= remove_dir_all-0.5.2
-CARGO_CRATE_DEPENDS+= schannel-0.1.16
-CARGO_CRATE_DEPENDS+= security-framework-0.3.4
-CARGO_CRATE_DEPENDS+= security-framework-sys-0.3.3
-CARGO_CRATE_DEPENDS+= socks-0.3.2
-CARGO_CRATE_DEPENDS+= tempfile-3.1.0
-CARGO_CRATE_DEPENDS+= termion-1.5.5
-CARGO_CRATE_DEPENDS+= tor-stream-0.2.0
-CARGO_CRATE_DEPENDS+= vcpkg-0.2.8
-CARGO_CRATE_DEPENDS+= wasi-0.7.0
-CARGO_CRATE_DEPENDS+= winapi-0.2.8
-CARGO_CRATE_DEPENDS+= winapi-0.3.8
-CARGO_CRATE_DEPENDS+= winapi-build-0.1.1
-CARGO_CRATE_DEPENDS+= winapi-i686-pc-windows-gnu-0.4.0
-CARGO_CRATE_DEPENDS+= winapi-x86_64-pc-windows-gnu-0.4.0
-CARGO_CRATE_DEPENDS+= ws2_32-sys-0.2.1
+USE_LANGUAGES+= c # rust, but needs a toolchain to link
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
diff --git a/net/phetch/cargo-depends.mk b/net/phetch/cargo-depends.mk
new file mode 100644
index 00000000000..c99123d3939
--- /dev/null
+++ b/net/phetch/cargo-depends.mk
@@ -0,0 +1,47 @@
+# $NetBSD: cargo-depends.mk,v 1.1 2020/10/26 07:45:55 pin Exp $
+
+CARGO_CRATE_DEPENDS+= atty-0.2.14
+CARGO_CRATE_DEPENDS+= autocfg-0.1.7
+CARGO_CRATE_DEPENDS+= bitflags-1.2.1
+CARGO_CRATE_DEPENDS+= byteorder-1.3.2
+CARGO_CRATE_DEPENDS+= c2-chacha-0.2.3
+CARGO_CRATE_DEPENDS+= cc-1.0.48
+CARGO_CRATE_DEPENDS+= cfg-if-0.1.10
+CARGO_CRATE_DEPENDS+= core-foundation-0.6.4
+CARGO_CRATE_DEPENDS+= core-foundation-sys-0.6.2
+CARGO_CRATE_DEPENDS+= foreign-types-0.3.2
+CARGO_CRATE_DEPENDS+= foreign-types-shared-0.1.1
+CARGO_CRATE_DEPENDS+= getrandom-0.1.13
+CARGO_CRATE_DEPENDS+= hermit-abi-0.1.6
+CARGO_CRATE_DEPENDS+= lazy_static-1.4.0
+CARGO_CRATE_DEPENDS+= libc-0.2.66
+CARGO_CRATE_DEPENDS+= log-0.4.8
+CARGO_CRATE_DEPENDS+= native-tls-0.2.3
+CARGO_CRATE_DEPENDS+= numtoa-0.1.0
+CARGO_CRATE_DEPENDS+= openssl-0.10.26
+CARGO_CRATE_DEPENDS+= openssl-probe-0.1.2
+CARGO_CRATE_DEPENDS+= openssl-sys-0.9.53
+CARGO_CRATE_DEPENDS+= pkg-config-0.3.17
+CARGO_CRATE_DEPENDS+= ppv-lite86-0.2.6
+CARGO_CRATE_DEPENDS+= rand-0.7.2
+CARGO_CRATE_DEPENDS+= rand_chacha-0.2.1
+CARGO_CRATE_DEPENDS+= rand_core-0.5.1
+CARGO_CRATE_DEPENDS+= rand_hc-0.2.0
+CARGO_CRATE_DEPENDS+= redox_syscall-0.1.56
+CARGO_CRATE_DEPENDS+= redox_termios-0.1.1
+CARGO_CRATE_DEPENDS+= remove_dir_all-0.5.2
+CARGO_CRATE_DEPENDS+= schannel-0.1.16
+CARGO_CRATE_DEPENDS+= security-framework-0.3.4
+CARGO_CRATE_DEPENDS+= security-framework-sys-0.3.3
+CARGO_CRATE_DEPENDS+= socks-0.3.2
+CARGO_CRATE_DEPENDS+= tempfile-3.1.0
+CARGO_CRATE_DEPENDS+= termion-1.5.5
+CARGO_CRATE_DEPENDS+= tor-stream-0.2.0
+CARGO_CRATE_DEPENDS+= vcpkg-0.2.8
+CARGO_CRATE_DEPENDS+= wasi-0.7.0
+CARGO_CRATE_DEPENDS+= winapi-0.2.8
+CARGO_CRATE_DEPENDS+= winapi-0.3.8
+CARGO_CRATE_DEPENDS+= winapi-build-0.1.1
+CARGO_CRATE_DEPENDS+= winapi-i686-pc-windows-gnu-0.4.0
+CARGO_CRATE_DEPENDS+= winapi-x86_64-pc-windows-gnu-0.4.0
+CARGO_CRATE_DEPENDS+= ws2_32-sys-0.2.1