summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2025-08-19 07:59:48 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2025-08-19 08:45:30 -0700
commit56fafd008017baed7363ac9688b4dc7fedbd6f59 (patch)
treee27fef1e8780c690e495520ba1aa4da55df08dc7
parentmisc/py-pytorch: update 2.7.1 → 2.8.0 (diff)
audio/py-torchaudio: update 2.2.1 → 2.8.0
-rw-r--r--audio/py-torchaudio/Makefile8
-rw-r--r--audio/py-torchaudio/distinfo6
2 files changed, 8 insertions, 6 deletions
diff --git a/audio/py-torchaudio/Makefile b/audio/py-torchaudio/Makefile
index 7e9beec71003..3284864a85c0 100644
--- a/audio/py-torchaudio/Makefile
+++ b/audio/py-torchaudio/Makefile
@@ -1,7 +1,6 @@
PORTNAME= torchaudio
DISTVERSIONPREFIX= v
-DISTVERSION= 2.2.1
-PORTREVISION= 9
+DISTVERSION= 2.8.0
CATEGORIES= audio python # machine-learning
MASTER_SITES= https://downloads.sourceforge.net/project/sox/sox/14.4.2/:sox
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -10,7 +9,8 @@ EXTRACT_ONLY= ${GH_ACCOUNT}-${GH_PROJECT}-${DISTVERSIONFULL}_GH0.tar.gz
MAINTAINER= yuri@FreeBSD.org
COMMENT= PyTorch-based audio signal processing and machine learning library
-WWW= https://pytorch.org/audio/stable/index.html
+WWW= https://pytorch.org/audio/stable/index.html \
+ https://github.com/pytorch/audio
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
@@ -34,6 +34,8 @@ USE_GITHUB= yes
GH_ACCOUNT= pytorch
GH_PROJECT= audio
+LDFLAGS+= -Wl,-rpath=${PYTHON_SITELIBDIR}/torch/lib # https://github.com/pytorch/audio/issues/4047
+
post-patch:
@${REINPLACE_CMD} \
-e 's| URL .*| URL file://${DISTDIR}/sox-14.4.2.tar.bz2|' \
diff --git a/audio/py-torchaudio/distinfo b/audio/py-torchaudio/distinfo
index 089ecd6f17c1..0dc51780fdc7 100644
--- a/audio/py-torchaudio/distinfo
+++ b/audio/py-torchaudio/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1709965762
+TIMESTAMP = 1755584345
SHA256 (sox-14.4.2.tar.bz2) = 81a6956d4330e75b5827316e44ae381e6f1e8928003c6aa45896da9041ea149c
SIZE (sox-14.4.2.tar.bz2) = 935449
-SHA256 (pytorch-audio-v2.2.1_GH0.tar.gz) = 5f2a9cda9369ff348d1d7ca2c0a1f01afc9ebff1a13df9775c22aa5c43f5b0f1
-SIZE (pytorch-audio-v2.2.1_GH0.tar.gz) = 4498329
+SHA256 (pytorch-audio-v2.8.0_GH0.tar.gz) = 8809e4b0fa1635a89d5b05fe8e6e1db79fc0cc2052474ef6e76e349755827c12
+SIZE (pytorch-audio-v2.8.0_GH0.tar.gz) = 4510296