Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Aug 2021 15:30:18 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 22eac850f2e1 - main - audio/lewton: add new port
Message-ID:  <202108161530.17GFUI8U087569@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=22eac850f2e1430a136d5493010f542e7203355d

commit 22eac850f2e1430a136d5493010f542e7203355d
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2021-08-16 15:00:18 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2021-08-16 15:25:56 +0000

    audio/lewton: add new port
    
    Vorbis decoder written in pure Rust.
    
    https://github.com/RustAudio/lewton
---
 audio/Makefile         |   1 +
 audio/lewton/Makefile  |  94 +++++++++++++++++++++++++++++++++++++
 audio/lewton/distinfo  | 123 +++++++++++++++++++++++++++++++++++++++++++++++++
 audio/lewton/pkg-descr |   3 ++
 audio/lewton/pkg-plist |   6 +++
 5 files changed, 227 insertions(+)

diff --git a/audio/Makefile b/audio/Makefile
index c82103095548..b8cc490e4c67 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -347,6 +347,7 @@
     SUBDIR += lame
     SUBDIR += lash
     SUBDIR += lenticular-lv2
+    SUBDIR += lewton
     SUBDIR += liba52
     SUBDIR += libaacplus
     SUBDIR += libadplug
diff --git a/audio/lewton/Makefile b/audio/lewton/Makefile
new file mode 100644
index 000000000000..a82518c61dcf
--- /dev/null
+++ b/audio/lewton/Makefile
@@ -0,0 +1,94 @@
+PORTNAME=	lewton
+DISTVERSION=	0.10.2
+CATEGORIES=	audio
+
+PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES+=	dbcecbde0145.patch:-p1 # https://github.com/RustAudio/lewton/pull/97
+
+MAINTAINER=	jbeich@FreeBSD.org
+COMMENT=	Rust vorbis decoder
+
+LICENSE=	APACHE20 MIT
+LICENSE_COMB=	dual
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	cargo-cbuild:devel/cargo-c
+
+USES=		cargo
+USE_GITHUB=	yes
+USE_LDCONFIG=	yes
+GH_ACCOUNT=	RustAudio
+PLIST_SUB=	VERSION=${DISTVERSION:C/-.*//}
+
+CARGO_CRATES=	al-sys-0.6.1 \
+		alto-3.0.4 \
+		autocfg-1.0.0 \
+		byteorder-1.3.2 \
+		bytes-0.4.12 \
+		cc-1.0.50 \
+		cfg-if-0.1.10 \
+		cmake-0.1.42 \
+		curl-0.4.25 \
+		curl-sys-0.4.25 \
+		fuchsia-cprng-0.1.1 \
+		futures-0.1.29 \
+		gcc-0.3.55 \
+		iovec-0.1.4 \
+		lazy_static-0.2.11 \
+		lazy_static-1.4.0 \
+		libc-0.2.66 \
+		libloading-0.5.2 \
+		libz-sys-1.0.25 \
+		log-0.4.8 \
+		maybe-uninit-2.0.0 \
+		ogg-0.8.0 \
+		ogg-sys-0.0.9 \
+		openssl-probe-0.1.2 \
+		openssl-sys-0.9.54 \
+		owning_ref-0.3.3 \
+		parking_lot-0.4.8 \
+		parking_lot_core-0.2.14 \
+		pkg-config-0.3.17 \
+		proc-macro2-1.0.8 \
+		quote-1.0.2 \
+		rand-0.3.23 \
+		rand-0.4.6 \
+		rand_core-0.3.1 \
+		rand_core-0.4.2 \
+		rdrand-0.4.0 \
+		redox_syscall-0.1.56 \
+		rental-0.5.5 \
+		rental-impl-0.5.5 \
+		rustc-serialize-0.3.24 \
+		schannel-0.1.16 \
+		sha2-0.1.2 \
+		smallvec-0.6.13 \
+		socket2-0.3.11 \
+		stable_deref_trait-1.1.1 \
+		syn-1.0.14 \
+		test-assets-0.2.0 \
+		tinyvec-1.0.1 \
+		tinyvec_macros-0.1.0 \
+		tokio-io-0.1.12 \
+		unicode-xid-0.2.0 \
+		vcpkg-0.2.8 \
+		vorbis-0.1.0 \
+		vorbis-encoder-0.1.4 \
+		vorbis-sys-0.0.8 \
+		vorbisfile-sys-0.0.8 \
+		winapi-0.3.8 \
+		winapi-i686-pc-windows-gnu-0.4.0 \
+		winapi-x86_64-pc-windows-gnu-0.4.0
+
+do-build:
+	@${CARGO_CARGO_RUN} cbuild \
+		${CARGO_BUILD_ARGS}
+
+do-install:
+	@${CARGO_CARGO_RUN} cinstall \
+		--destdir "${STAGEDIR}" \
+		--prefix "${PREFIX}" \
+		${CARGO_INSTALL_ARGS}
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
+
+.include <bsd.port.mk>
diff --git a/audio/lewton/distinfo b/audio/lewton/distinfo
new file mode 100644
index 000000000000..eceff0233558
--- /dev/null
+++ b/audio/lewton/distinfo
@@ -0,0 +1,123 @@
+TIMESTAMP = 1611171065
+SHA256 (rust/crates/al-sys-0.6.1.crate) = ff8d9b0f4d10264c060ee5614dedb6b7695f366e93be6549c48f58981da39023
+SIZE (rust/crates/al-sys-0.6.1.crate) = 8796
+SHA256 (rust/crates/alto-3.0.4.crate) = d75be812fc4f27ac66752f30715a2357c9f3ad619229fc21cf431b32606dfae5
+SIZE (rust/crates/alto-3.0.4.crate) = 42058
+SHA256 (rust/crates/autocfg-1.0.0.crate) = f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d
+SIZE (rust/crates/autocfg-1.0.0.crate) = 12870
+SHA256 (rust/crates/byteorder-1.3.2.crate) = a7c3dd8985a7111efc5c80b44e23ecdd8c007de8ade3b96595387e812b957cf5
+SIZE (rust/crates/byteorder-1.3.2.crate) = 21596
+SHA256 (rust/crates/bytes-0.4.12.crate) = 206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c
+SIZE (rust/crates/bytes-0.4.12.crate) = 46361
+SHA256 (rust/crates/cc-1.0.50.crate) = 95e28fa049fda1c330bcf9d723be7663a899c4679724b34c81e9f5a326aab8cd
+SIZE (rust/crates/cc-1.0.50.crate) = 49792
+SHA256 (rust/crates/cfg-if-0.1.10.crate) = 4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822
+SIZE (rust/crates/cfg-if-0.1.10.crate) = 7933
+SHA256 (rust/crates/cmake-0.1.42.crate) = 81fb25b677f8bf1eb325017cb6bb8452f87969db0fedb4f757b297bee78a7c62
+SIZE (rust/crates/cmake-0.1.42.crate) = 14266
+SHA256 (rust/crates/curl-0.4.25.crate) = 06aa71e9208a54def20792d877bc663d6aae0732b9852e612c4a933177c31283
+SIZE (rust/crates/curl-0.4.25.crate) = 75171
+SHA256 (rust/crates/curl-sys-0.4.25.crate) = 0c38ca47d60b86d0cc9d42caa90a0885669c2abc9791f871c81f58cdf39e979b
+SIZE (rust/crates/curl-sys-0.4.25.crate) = 2975782
+SHA256 (rust/crates/fuchsia-cprng-0.1.1.crate) = a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba
+SIZE (rust/crates/fuchsia-cprng-0.1.1.crate) = 2950
+SHA256 (rust/crates/futures-0.1.29.crate) = 1b980f2816d6ee8673b6517b52cb0e808a180efc92e5c19d02cdda79066703ef
+SIZE (rust/crates/futures-0.1.29.crate) = 158346
+SHA256 (rust/crates/gcc-0.3.55.crate) = 8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2
+SIZE (rust/crates/gcc-0.3.55.crate) = 37262
+SHA256 (rust/crates/iovec-0.1.4.crate) = b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e
+SIZE (rust/crates/iovec-0.1.4.crate) = 8720
+SHA256 (rust/crates/lazy_static-0.2.11.crate) = 76f033c7ad61445c5b347c7382dd1237847eb1bce590fe50365dcb33d546be73
+SIZE (rust/crates/lazy_static-0.2.11.crate) = 12361
+SHA256 (rust/crates/lazy_static-1.4.0.crate) = e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646
+SIZE (rust/crates/lazy_static-1.4.0.crate) = 10443
+SHA256 (rust/crates/libc-0.2.66.crate) = d515b1f41455adea1313a4a2ac8a8a477634fbae63cc6100e3aebb207ce61558
+SIZE (rust/crates/libc-0.2.66.crate) = 457815
+SHA256 (rust/crates/libloading-0.5.2.crate) = f2b111a074963af1d37a139918ac6d49ad1d0d5e47f72fd55388619691a7d753
+SIZE (rust/crates/libloading-0.5.2.crate) = 16420
+SHA256 (rust/crates/libz-sys-1.0.25.crate) = 2eb5e43362e38e2bca2fd5f5134c4d4564a23a5c28e9b95411652021a8675ebe
+SIZE (rust/crates/libz-sys-1.0.25.crate) = 650151
+SHA256 (rust/crates/log-0.4.8.crate) = 14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7
+SIZE (rust/crates/log-0.4.8.crate) = 31297
+SHA256 (rust/crates/maybe-uninit-2.0.0.crate) = 60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00
+SIZE (rust/crates/maybe-uninit-2.0.0.crate) = 11809
+SHA256 (rust/crates/ogg-0.8.0.crate) = 6951b4e8bf21c8193da321bcce9c9dd2e13c858fe078bf9054a288b419ae5d6e
+SIZE (rust/crates/ogg-0.8.0.crate) = 27128
+SHA256 (rust/crates/ogg-sys-0.0.9.crate) = a95b8c172e17df1a41bf8d666301d3b2c4efeb90d9d0415e2a4dc0668b35fdb2
+SIZE (rust/crates/ogg-sys-0.0.9.crate) = 25565
+SHA256 (rust/crates/openssl-probe-0.1.2.crate) = 77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de
+SIZE (rust/crates/openssl-probe-0.1.2.crate) = 6427
+SHA256 (rust/crates/openssl-sys-0.9.54.crate) = 1024c0a59774200a555087a6da3f253a9095a5f344e353b212ac4c8b8e450986
+SIZE (rust/crates/openssl-sys-0.9.54.crate) = 45751
+SHA256 (rust/crates/owning_ref-0.3.3.crate) = cdf84f41639e037b484f93433aa3897863b561ed65c6e59c7073d7c561710f37
+SIZE (rust/crates/owning_ref-0.3.3.crate) = 11710
+SHA256 (rust/crates/parking_lot-0.4.8.crate) = 149d8f5b97f3c1133e3cfcd8886449959e856b557ff281e292b733d7c69e005e
+SIZE (rust/crates/parking_lot-0.4.8.crate) = 33640
+SHA256 (rust/crates/parking_lot_core-0.2.14.crate) = 4db1a8ccf734a7bce794cc19b3df06ed87ab2f3907036b693c68f56b4d4537fa
+SIZE (rust/crates/parking_lot_core-0.2.14.crate) = 22140
+SHA256 (rust/crates/pkg-config-0.3.17.crate) = 05da548ad6865900e60eaba7f589cc0783590a92e940c26953ff81ddbab2d677
+SIZE (rust/crates/pkg-config-0.3.17.crate) = 14533
+SHA256 (rust/crates/proc-macro2-1.0.8.crate) = 3acb317c6ff86a4e579dfa00fc5e6cca91ecbb4e7eb2df0468805b674eb88548
+SIZE (rust/crates/proc-macro2-1.0.8.crate) = 35657
+SHA256 (rust/crates/quote-1.0.2.crate) = 053a8c8bcc71fcce321828dc897a98ab9760bef03a4fc36693c231e5b3216cfe
+SIZE (rust/crates/quote-1.0.2.crate) = 23023
+SHA256 (rust/crates/rand-0.3.23.crate) = 64ac302d8f83c0c1974bf758f6b041c6c8ada916fbb44a609158ca8b064cc76c
+SIZE (rust/crates/rand-0.3.23.crate) = 11318
+SHA256 (rust/crates/rand-0.4.6.crate) = 552840b97013b1a26992c11eac34bdd778e464601a4c2054b5f0bff7c6761293
+SIZE (rust/crates/rand-0.4.6.crate) = 76401
+SHA256 (rust/crates/rand_core-0.3.1.crate) = 7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b
+SIZE (rust/crates/rand_core-0.3.1.crate) = 15483
+SHA256 (rust/crates/rand_core-0.4.2.crate) = 9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc
+SIZE (rust/crates/rand_core-0.4.2.crate) = 20243
+SHA256 (rust/crates/rdrand-0.4.0.crate) = 678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2
+SIZE (rust/crates/rdrand-0.4.0.crate) = 6456
+SHA256 (rust/crates/redox_syscall-0.1.56.crate) = 2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84
+SIZE (rust/crates/redox_syscall-0.1.56.crate) = 17117
+SHA256 (rust/crates/rental-0.5.5.crate) = 8545debe98b2b139fb04cad8618b530e9b07c152d99a5de83c860b877d67847f
+SIZE (rust/crates/rental-0.5.5.crate) = 16796
+SHA256 (rust/crates/rental-impl-0.5.5.crate) = 475e68978dc5b743f2f40d8e0a8fdc83f1c5e78cbf4b8fa5e74e73beebc340de
+SIZE (rust/crates/rental-impl-0.5.5.crate) = 12093
+SHA256 (rust/crates/rustc-serialize-0.3.24.crate) = dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda
+SIZE (rust/crates/rustc-serialize-0.3.24.crate) = 45926
+SHA256 (rust/crates/schannel-0.1.16.crate) = 87f550b06b6cba9c8b8be3ee73f391990116bf527450d2556e9b9ce263b9a021
+SIZE (rust/crates/schannel-0.1.16.crate) = 39153
+SHA256 (rust/crates/sha2-0.1.2.crate) = e0cd9505afe45df2b8bdda585776281c7b29eb9d0e34b1e6dd2b12cba5d4ae1e
+SIZE (rust/crates/sha2-0.1.2.crate) = 857457
+SHA256 (rust/crates/smallvec-0.6.13.crate) = f7b0758c52e15a8b5e3691eae6cc559f08eee9406e548a4477ba4e67770a82b6
+SIZE (rust/crates/smallvec-0.6.13.crate) = 22760
+SHA256 (rust/crates/socket2-0.3.11.crate) = e8b74de517221a2cb01a53349cf54182acdc31a074727d3079068448c0676d85
+SIZE (rust/crates/socket2-0.3.11.crate) = 27725
+SHA256 (rust/crates/stable_deref_trait-1.1.1.crate) = dba1a27d3efae4351c8051072d619e3ade2820635c3958d826bfea39d59b54c8
+SIZE (rust/crates/stable_deref_trait-1.1.1.crate) = 8007
+SHA256 (rust/crates/syn-1.0.14.crate) = af6f3550d8dff9ef7dc34d384ac6f107e5d31c8f57d9f28e0081503f547ac8f5
+SIZE (rust/crates/syn-1.0.14.crate) = 195286
+SHA256 (rust/crates/test-assets-0.2.0.crate) = dc2d8d670510507c128a1c1cd7a4337cf6a737199d0b602d10469e4c3c492959
+SIZE (rust/crates/test-assets-0.2.0.crate) = 8220
+SHA256 (rust/crates/tinyvec-1.0.1.crate) = b78a366903f506d2ad52ca8dc552102ffdd3e937ba8a227f024dc1d1eae28575
+SIZE (rust/crates/tinyvec-1.0.1.crate) = 33836
+SHA256 (rust/crates/tinyvec_macros-0.1.0.crate) = cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c
+SIZE (rust/crates/tinyvec_macros-0.1.0.crate) = 1817
+SHA256 (rust/crates/tokio-io-0.1.12.crate) = 5090db468dad16e1a7a54c8c67280c5e4b544f3d3e018f0b913b400261f85926
+SIZE (rust/crates/tokio-io-0.1.12.crate) = 33555
+SHA256 (rust/crates/unicode-xid-0.2.0.crate) = 826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c
+SIZE (rust/crates/unicode-xid-0.2.0.crate) = 14994
+SHA256 (rust/crates/vcpkg-0.2.8.crate) = 3fc439f2794e98976c88a2a2dafce96b930fe8010b0a256b3c2199a773933168
+SIZE (rust/crates/vcpkg-0.2.8.crate) = 11209
+SHA256 (rust/crates/vorbis-0.1.0.crate) = 760993e54524128b88d4d7aff09c773c2f16a9f18db3c8ae1ccca5afd1287656
+SIZE (rust/crates/vorbis-0.1.0.crate) = 8320
+SHA256 (rust/crates/vorbis-encoder-0.1.4.crate) = 3fb66bcdde056dd230991bb86669a1269778fe8ad1f6cee403428ac7985391bc
+SIZE (rust/crates/vorbis-encoder-0.1.4.crate) = 10617
+SHA256 (rust/crates/vorbis-sys-0.0.8.crate) = 729e1f15395850b4e6d19ca0cd1d42ef44707503a53b69d40ff49182b3c5589d
+SIZE (rust/crates/vorbis-sys-0.0.8.crate) = 354208
+SHA256 (rust/crates/vorbisfile-sys-0.0.8.crate) = 4f4306d7e1ac4699b55e20de9483750b90c250913188efd7484db6bfbe9042d1
+SIZE (rust/crates/vorbisfile-sys-0.0.8.crate) = 20754
+SHA256 (rust/crates/winapi-0.3.8.crate) = 8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6
+SIZE (rust/crates/winapi-0.3.8.crate) = 1128308
+SHA256 (rust/crates/winapi-i686-pc-windows-gnu-0.4.0.crate) = ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6
+SIZE (rust/crates/winapi-i686-pc-windows-gnu-0.4.0.crate) = 2918815
+SHA256 (rust/crates/winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f
+SIZE (rust/crates/winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 2947998
+SHA256 (RustAudio-lewton-0.10.2_GH0.tar.gz) = a3779c5cbe0a4d7e1c158f57ebf6ad81ccf2e9f3fd047e50848c303682fcb113
+SIZE (RustAudio-lewton-0.10.2_GH0.tar.gz) = 79718
+SHA256 (dbcecbde0145.patch) = 5b8f9a18c766f57e82aa9cfee8e29745c657a7520b2d97cc4bc128e543beb516
+SIZE (dbcecbde0145.patch) = 672
diff --git a/audio/lewton/pkg-descr b/audio/lewton/pkg-descr
new file mode 100644
index 000000000000..07ab42822aac
--- /dev/null
+++ b/audio/lewton/pkg-descr
@@ -0,0 +1,3 @@
+Vorbis decoder written in pure Rust.
+
+WWW: https://github.com/RustAudio/lewton
diff --git a/audio/lewton/pkg-plist b/audio/lewton/pkg-plist
new file mode 100644
index 000000000000..f4041be223df
--- /dev/null
+++ b/audio/lewton/pkg-plist
@@ -0,0 +1,6 @@
+include/lewton/lewton.h
+lib/liblewton.a
+lib/liblewton.so
+lib/liblewton.so.0
+lib/liblewton.so.%%VERSION%%
+libdata/pkgconfig/lewton.pc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108161530.17GFUI8U087569>