summaryrefslogtreecommitdiff
path: root/audio/py-torchaudio
diff options
context:
space:
mode:
Diffstat (limited to 'audio/py-torchaudio')
-rw-r--r--audio/py-torchaudio/Makefile14
-rw-r--r--audio/py-torchaudio/distinfo6
2 files changed, 14 insertions, 6 deletions
diff --git a/audio/py-torchaudio/Makefile b/audio/py-torchaudio/Makefile
index 7e9beec71003..aabf03bbaaaf 100644
--- a/audio/py-torchaudio/Makefile
+++ b/audio/py-torchaudio/Makefile
@@ -1,7 +1,7 @@
PORTNAME= torchaudio
DISTVERSIONPREFIX= v
-DISTVERSION= 2.2.1
-PORTREVISION= 9
+DISTVERSION= 2.8.0
+PORTREVISION= 2
CATEGORIES= audio python # machine-learning
MASTER_SITES= https://downloads.sourceforge.net/project/sox/sox/14.4.2/:sox
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -10,7 +10,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 +35,9 @@ USE_GITHUB= yes
GH_ACCOUNT= pytorch
GH_PROJECT= audio
+# workaround for missing libsox.so, see https://github.com/pytorch/audio/issues/4062
+PLIST_FILES= lib/python${_PYTHON_VERSION}/site-packages/torchaudio/lib/libsox.so
+
post-patch:
@${REINPLACE_CMD} \
-e 's| URL .*| URL file://${DISTDIR}/sox-14.4.2.tar.bz2|' \
@@ -45,5 +49,9 @@ post-install:
torchaudio/lib/_torchaudio_sox.so \
torchaudio/lib/libtorchaudio.so \
torchaudio/lib/libtorchaudio_sox.so
+ # workaround for missing libsox.so, see https://github.com/pytorch/audio/issues/4062
+ @${CP} \
+ ${WRKSRC}/build/*/third_party/sox/libsox.so \
+ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/torchaudio/lib
.include <bsd.port.mk>
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