Date: Mon, 11 Nov 2019 12:35:45 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r517257 - in head/devel: . cargo-c Message-ID: <201911111235.xABCZjMF021732@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Mon Nov 11 12:35:45 2019 New Revision: 517257 URL: https://svnweb.freebsd.org/changeset/ports/517257 Log: devel/cargo-c: add new port cargo applet to build and install C-ABI compatibile dynamic and static libraries. It produces and installs a correct pkg-config file, a static library and a dynamic library, and a C header to be used by any C (and C-compatible) software. https://github.com/lu-zero/cargo-c Added: head/devel/cargo-c/ head/devel/cargo-c/Makefile (contents, props changed) head/devel/cargo-c/distinfo (contents, props changed) head/devel/cargo-c/pkg-descr (contents, props changed) Modified: head/devel/Makefile (contents, props changed) Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Mon Nov 11 12:35:34 2019 (r517256) +++ head/devel/Makefile Mon Nov 11 12:35:45 2019 (r517257) @@ -286,6 +286,7 @@ SUBDIR += capnproto SUBDIR += capstone3 SUBDIR += capstone4 + SUBDIR += cargo-c SUBDIR += cargo-tree SUBDIR += cask SUBDIR += catch Added: head/devel/cargo-c/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cargo-c/Makefile Mon Nov 11 12:35:45 2019 (r517257) @@ -0,0 +1,88 @@ +# $FreeBSD$ + +PORTNAME= cargo-c +DISTVERSION= 0.3.0 +CATEGORIES= devel +MASTER_SITES= CRATESIO +# XXX Teach USES=cargo to have proper default +DISTFILES= ${CARGO_DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Cargo C-ABI helpers + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cargo +PLIST_FILES= bin/cargo-cbuild \ + bin/cargo-cinstall + +CARGO_CRATES= aho-corasick-0.7.6 \ + ansi_term-0.11.0 \ + atty-0.2.13 \ + autocfg-0.1.7 \ + bitflags-1.2.1 \ + c2-chacha-0.2.3 \ + cargo_metadata-0.9.0 \ + cbindgen-0.9.1 \ + cfg-if-0.1.10 \ + chrono-0.4.9 \ + clap-2.33.0 \ + env_logger-0.6.2 \ + getrandom-0.1.13 \ + heck-0.3.1 \ + humantime-1.3.0 \ + itoa-0.4.4 \ + lazy_static-1.4.0 \ + libc-0.2.65 \ + log-0.4.8 \ + memchr-2.2.1 \ + num-integer-0.1.41 \ + num-traits-0.2.8 \ + ppv-lite86-0.2.6 \ + pretty_env_logger-0.3.1 \ + proc-macro-error-0.2.6 \ + proc-macro2-1.0.6 \ + quick-error-1.2.2 \ + quote-1.0.2 \ + rand-0.7.2 \ + rand_chacha-0.2.1 \ + rand_core-0.5.1 \ + rand_hc-0.2.0 \ + redox_syscall-0.1.56 \ + regex-1.3.1 \ + regex-syntax-0.6.12 \ + remove_dir_all-0.5.2 \ + ryu-1.0.2 \ + semver-0.9.0 \ + semver-parser-0.7.0 \ + serde-1.0.102 \ + serde_derive-1.0.102 \ + serde_json-1.0.41 \ + strsim-0.8.0 \ + structopt-0.3.4 \ + structopt-derive-0.3.4 \ + syn-1.0.8 \ + tempfile-3.1.0 \ + termcolor-1.0.5 \ + textwrap-0.11.0 \ + thread_local-0.3.6 \ + time-0.1.42 \ + toml-0.5.5 \ + unicode-segmentation-1.5.0 \ + unicode-width-0.1.6 \ + unicode-xid-0.2.0 \ + vec_map-0.8.1 \ + wasi-0.7.0 \ + winapi-0.3.8 \ + winapi-i686-pc-windows-gnu-0.4.0 \ + winapi-util-0.1.2 \ + winapi-x86_64-pc-windows-gnu-0.4.0 \ + wincolor-1.0.2 + +post-patch: + @${REINPLACE_CMD} -e 's/linux/${OPSYS:tl}/' \ + -e 's,libdir.join("pkgconfig,prefix.join("libdata/pkgconfig,' \ + ${WRKSRC}/src/main.rs + +.include <bsd.port.mk> Added: head/devel/cargo-c/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cargo-c/distinfo Mon Nov 11 12:35:45 2019 (r517257) @@ -0,0 +1,127 @@ +TIMESTAMP = 1573267851 +SHA256 (rust/crates/cargo-c-0.3.0.tar.gz) = adbc0844cd6ee218c25554006110a616288556db889024e15dbc438436f890bd +SIZE (rust/crates/cargo-c-0.3.0.tar.gz) = 15961 +SHA256 (rust/crates/aho-corasick-0.7.6.tar.gz) = 58fb5e95d83b38284460a5fda7d6470aa0b8844d283a0b614b8535e880800d2d +SIZE (rust/crates/aho-corasick-0.7.6.tar.gz) = 108953 +SHA256 (rust/crates/ansi_term-0.11.0.tar.gz) = ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b +SIZE (rust/crates/ansi_term-0.11.0.tar.gz) = 17087 +SHA256 (rust/crates/atty-0.2.13.tar.gz) = 1803c647a3ec87095e7ae7acfca019e98de5ec9a7d01343f611cf3152ed71a90 +SIZE (rust/crates/atty-0.2.13.tar.gz) = 4764 +SHA256 (rust/crates/autocfg-0.1.7.tar.gz) = 1d49d90015b3c36167a20fe2810c5cd875ad504b39cff3d4eae7977e6b7c1cb2 +SIZE (rust/crates/autocfg-0.1.7.tar.gz) = 12158 +SHA256 (rust/crates/bitflags-1.2.1.tar.gz) = cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693 +SIZE (rust/crates/bitflags-1.2.1.tar.gz) = 16745 +SHA256 (rust/crates/c2-chacha-0.2.3.tar.gz) = 214238caa1bf3a496ec3392968969cab8549f96ff30652c9e56885329315f6bb +SIZE (rust/crates/c2-chacha-0.2.3.tar.gz) = 13336 +SHA256 (rust/crates/cargo_metadata-0.9.0.tar.gz) = 8d2d1617e838936c0d2323a65cc151e03ae19a7678dd24f72bccf27119b90a5d +SIZE (rust/crates/cargo_metadata-0.9.0.tar.gz) = 14594 +SHA256 (rust/crates/cbindgen-0.9.1.tar.gz) = 9daec6140ab4dcd38c3dd57e580b59a621172a526ac79f1527af760a55afeafd +SIZE (rust/crates/cbindgen-0.9.1.tar.gz) = 129676 +SHA256 (rust/crates/cfg-if-0.1.10.tar.gz) = 4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822 +SIZE (rust/crates/cfg-if-0.1.10.tar.gz) = 7933 +SHA256 (rust/crates/chrono-0.4.9.tar.gz) = e8493056968583b0193c1bb04d6f7684586f3726992d6c573261941a895dbd68 +SIZE (rust/crates/chrono-0.4.9.tar.gz) = 133671 +SHA256 (rust/crates/clap-2.33.0.tar.gz) = 5067f5bb2d80ef5d68b4c87db81601f0b75bca627bc2ef76b141d7b846a3c6d9 +SIZE (rust/crates/clap-2.33.0.tar.gz) = 196458 +SHA256 (rust/crates/env_logger-0.6.2.tar.gz) = aafcde04e90a5226a6443b7aabdb016ba2f8307c847d524724bd9b346dd1a2d3 +SIZE (rust/crates/env_logger-0.6.2.tar.gz) = 31078 +SHA256 (rust/crates/getrandom-0.1.13.tar.gz) = e7db7ca94ed4cd01190ceee0d8a8052f08a247aa1b469a7f68c6a3b71afcf407 +SIZE (rust/crates/getrandom-0.1.13.tar.gz) = 24581 +SHA256 (rust/crates/heck-0.3.1.tar.gz) = 20564e78d53d2bb135c343b3f47714a56af2061f1c928fdb541dc7b9fdd94205 +SIZE (rust/crates/heck-0.3.1.tar.gz) = 54666 +SHA256 (rust/crates/humantime-1.3.0.tar.gz) = df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f +SIZE (rust/crates/humantime-1.3.0.tar.gz) = 17020 +SHA256 (rust/crates/itoa-0.4.4.tar.gz) = 501266b7edd0174f8530248f87f99c88fbe60ca4ef3dd486835b8d8d53136f7f +SIZE (rust/crates/itoa-0.4.4.tar.gz) = 11147 +SHA256 (rust/crates/lazy_static-1.4.0.tar.gz) = e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646 +SIZE (rust/crates/lazy_static-1.4.0.tar.gz) = 10443 +SHA256 (rust/crates/libc-0.2.65.tar.gz) = 1a31a0627fdf1f6a39ec0dd577e101440b7db22672c0901fe00a9a6fbb5c24e8 +SIZE (rust/crates/libc-0.2.65.tar.gz) = 439610 +SHA256 (rust/crates/log-0.4.8.tar.gz) = 14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7 +SIZE (rust/crates/log-0.4.8.tar.gz) = 31297 +SHA256 (rust/crates/memchr-2.2.1.tar.gz) = 88579771288728879b57485cc7d6b07d648c9f0141eb955f8ab7f9d45394468e +SIZE (rust/crates/memchr-2.2.1.tar.gz) = 20862 +SHA256 (rust/crates/num-integer-0.1.41.tar.gz) = b85e541ef8255f6cf42bbfe4ef361305c6c135d10919ecc26126c4e5ae94bc09 +SIZE (rust/crates/num-integer-0.1.41.tar.gz) = 19399 +SHA256 (rust/crates/num-traits-0.2.8.tar.gz) = 6ba9a427cfca2be13aa6f6403b0b7e7368fe982bfa16fccc450ce74c46cd9b32 +SIZE (rust/crates/num-traits-0.2.8.tar.gz) = 39965 +SHA256 (rust/crates/ppv-lite86-0.2.6.tar.gz) = 74490b50b9fbe561ac330df47c08f3f33073d2d00c150f719147d7c54522fa1b +SIZE (rust/crates/ppv-lite86-0.2.6.tar.gz) = 20522 +SHA256 (rust/crates/pretty_env_logger-0.3.1.tar.gz) = 717ee476b1690853d222af4634056d830b5197ffd747726a9a1eee6da9f49074 +SIZE (rust/crates/pretty_env_logger-0.3.1.tar.gz) = 9077 +SHA256 (rust/crates/proc-macro-error-0.2.6.tar.gz) = aeccfe4d5d8ea175d5f0e4a2ad0637e0f4121d63bd99d356fb1f39ab2e7c6097 +SIZE (rust/crates/proc-macro-error-0.2.6.tar.gz) = 7963 +SHA256 (rust/crates/proc-macro2-1.0.6.tar.gz) = 9c9e470a8dc4aeae2dee2f335e8f533e2d4b347e1434e5671afc49b054592f27 +SIZE (rust/crates/proc-macro2-1.0.6.tar.gz) = 35414 +SHA256 (rust/crates/quick-error-1.2.2.tar.gz) = 9274b940887ce9addde99c4eee6b5c44cc494b182b97e73dc8ffdcb3397fd3f0 +SIZE (rust/crates/quick-error-1.2.2.tar.gz) = 15132 +SHA256 (rust/crates/quote-1.0.2.tar.gz) = 053a8c8bcc71fcce321828dc897a98ab9760bef03a4fc36693c231e5b3216cfe +SIZE (rust/crates/quote-1.0.2.tar.gz) = 23023 +SHA256 (rust/crates/rand-0.7.2.tar.gz) = 3ae1b169243eaf61759b8475a998f0a385e42042370f3a7dbaf35246eacc8412 +SIZE (rust/crates/rand-0.7.2.tar.gz) = 111438 +SHA256 (rust/crates/rand_chacha-0.2.1.tar.gz) = 03a2a90da8c7523f554344f921aa97283eadf6ac484a6d2a7d0212fa7f8d6853 +SIZE (rust/crates/rand_chacha-0.2.1.tar.gz) = 11475 +SHA256 (rust/crates/rand_core-0.5.1.tar.gz) = 90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19 +SIZE (rust/crates/rand_core-0.5.1.tar.gz) = 21116 +SHA256 (rust/crates/rand_hc-0.2.0.tar.gz) = ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c +SIZE (rust/crates/rand_hc-0.2.0.tar.gz) = 11670 +SHA256 (rust/crates/redox_syscall-0.1.56.tar.gz) = 2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84 +SIZE (rust/crates/redox_syscall-0.1.56.tar.gz) = 17117 +SHA256 (rust/crates/regex-1.3.1.tar.gz) = dc220bd33bdce8f093101afe22a037b8eb0e5af33592e6a9caafff0d4cb81cbd +SIZE (rust/crates/regex-1.3.1.tar.gz) = 234662 +SHA256 (rust/crates/regex-syntax-0.6.12.tar.gz) = 11a7e20d1cce64ef2fed88b66d347f88bd9babb82845b2b858f3edbf59a4f716 +SIZE (rust/crates/regex-syntax-0.6.12.tar.gz) = 289531 +SHA256 (rust/crates/remove_dir_all-0.5.2.tar.gz) = 4a83fa3702a688b9359eccba92d153ac33fd2e8462f9e0e3fdf155239ea7792e +SIZE (rust/crates/remove_dir_all-0.5.2.tar.gz) = 8907 +SHA256 (rust/crates/ryu-1.0.2.tar.gz) = bfa8506c1de11c9c4e4c38863ccbe02a305c8188e85a05a784c9e11e1c3910c8 +SIZE (rust/crates/ryu-1.0.2.tar.gz) = 42001 +SHA256 (rust/crates/semver-0.9.0.tar.gz) = 1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403 +SIZE (rust/crates/semver-0.9.0.tar.gz) = 17344 +SHA256 (rust/crates/semver-parser-0.7.0.tar.gz) = 388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3 +SIZE (rust/crates/semver-parser-0.7.0.tar.gz) = 10268 +SHA256 (rust/crates/serde-1.0.102.tar.gz) = 0c4b39bd9b0b087684013a792c59e3e07a46a01d2322518d8a1104641a0b1be0 +SIZE (rust/crates/serde-1.0.102.tar.gz) = 73356 +SHA256 (rust/crates/serde_derive-1.0.102.tar.gz) = ca13fc1a832f793322228923fbb3aba9f3f44444898f835d31ad1b74fa0a2bf8 +SIZE (rust/crates/serde_derive-1.0.102.tar.gz) = 49693 +SHA256 (rust/crates/serde_json-1.0.41.tar.gz) = 2f72eb2a68a7dc3f9a691bfda9305a1c017a6215e5a4545c258500d2099a37c2 +SIZE (rust/crates/serde_json-1.0.41.tar.gz) = 69870 +SHA256 (rust/crates/strsim-0.8.0.tar.gz) = 8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a +SIZE (rust/crates/strsim-0.8.0.tar.gz) = 9309 +SHA256 (rust/crates/structopt-0.3.4.tar.gz) = c167b61c7d4c126927f5346a4327ce20abf8a186b8041bbeb1ce49e5db49587b +SIZE (rust/crates/structopt-0.3.4.tar.gz) = 41301 +SHA256 (rust/crates/structopt-derive-0.3.4.tar.gz) = 519621841414165d2ad0d4c92be8f41844203f2b67e245f9345a5a12d40c69d7 +SIZE (rust/crates/structopt-derive-0.3.4.tar.gz) = 16500 +SHA256 (rust/crates/syn-1.0.8.tar.gz) = 661641ea2aa15845cddeb97dad000d22070bb5c1fb456b96c1cba883ec691e92 +SIZE (rust/crates/syn-1.0.8.tar.gz) = 191978 +SHA256 (rust/crates/tempfile-3.1.0.tar.gz) = 7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9 +SIZE (rust/crates/tempfile-3.1.0.tar.gz) = 25823 +SHA256 (rust/crates/termcolor-1.0.5.tar.gz) = 96d6098003bde162e4277c70665bd87c326f5a0c3f3fbfb285787fa482d54e6e +SIZE (rust/crates/termcolor-1.0.5.tar.gz) = 14526 +SHA256 (rust/crates/textwrap-0.11.0.tar.gz) = d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060 +SIZE (rust/crates/textwrap-0.11.0.tar.gz) = 17322 +SHA256 (rust/crates/thread_local-0.3.6.tar.gz) = c6b53e329000edc2b34dbe8545fd20e55a333362d0a321909685a19bd28c3f1b +SIZE (rust/crates/thread_local-0.3.6.tar.gz) = 12388 +SHA256 (rust/crates/time-0.1.42.tar.gz) = db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f +SIZE (rust/crates/time-0.1.42.tar.gz) = 30005 +SHA256 (rust/crates/toml-0.5.5.tar.gz) = 01d1404644c8b12b16bfcffa4322403a91a451584daaaa7c28d3152e6cbc98cf +SIZE (rust/crates/toml-0.5.5.tar.gz) = 54805 +SHA256 (rust/crates/unicode-segmentation-1.5.0.tar.gz) = 49f5526225fd8b77342d5986ab5f6055552e9c0776193b5b63fd53b46debfad7 +SIZE (rust/crates/unicode-segmentation-1.5.0.tar.gz) = 90262 +SHA256 (rust/crates/unicode-width-0.1.6.tar.gz) = 7007dbd421b92cc6e28410fe7362e2e0a2503394908f417b68ec8d1c364c4e20 +SIZE (rust/crates/unicode-width-0.1.6.tar.gz) = 16394 +SHA256 (rust/crates/unicode-xid-0.2.0.tar.gz) = 826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c +SIZE (rust/crates/unicode-xid-0.2.0.tar.gz) = 14994 +SHA256 (rust/crates/vec_map-0.8.1.tar.gz) = 05c78687fb1a80548ae3250346c3db86a80a7cdd77bda190189f2d0a0987c81a +SIZE (rust/crates/vec_map-0.8.1.tar.gz) = 14959 +SHA256 (rust/crates/wasi-0.7.0.tar.gz) = b89c3ce4ce14bdc6fb6beaf9ec7928ca331de5df7e5ea278375642a2f478570d +SIZE (rust/crates/wasi-0.7.0.tar.gz) = 33941 +SHA256 (rust/crates/winapi-0.3.8.tar.gz) = 8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6 +SIZE (rust/crates/winapi-0.3.8.tar.gz) = 1128308 +SHA256 (rust/crates/winapi-i686-pc-windows-gnu-0.4.0.tar.gz) = ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6 +SIZE (rust/crates/winapi-i686-pc-windows-gnu-0.4.0.tar.gz) = 2918815 +SHA256 (rust/crates/winapi-util-0.1.2.tar.gz) = 7168bab6e1daee33b4557efd0e95d5ca70a03706d39fa5f3fe7a236f584b03c9 +SIZE (rust/crates/winapi-util-0.1.2.tar.gz) = 7810 +SHA256 (rust/crates/winapi-x86_64-pc-windows-gnu-0.4.0.tar.gz) = 712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f +SIZE (rust/crates/winapi-x86_64-pc-windows-gnu-0.4.0.tar.gz) = 2947998 +SHA256 (rust/crates/wincolor-1.0.2.tar.gz) = 96f5016b18804d24db43cebf3c77269e7569b8954a8464501c216cc5e070eaa9 +SIZE (rust/crates/wincolor-1.0.2.tar.gz) = 4821 Added: head/devel/cargo-c/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cargo-c/pkg-descr Mon Nov 11 12:35:45 2019 (r517257) @@ -0,0 +1,8 @@ +cargo applet to build and install C-ABI compatibile dynamic and static +libraries. + +It produces and installs a correct pkg-config file, a static library +and a dynamic library, and a C header to be used by any C (and +C-compatible) software. + +WWW: https://github.com/lu-zero/cargo-c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911111235.xABCZjMF021732>