From nobody Sun Jul 16 12:42:10 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R3lGV5562z4mdNW; Sun, 16 Jul 2023 12:42:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R3lGV4fQKz3NXp; Sun, 16 Jul 2023 12:42:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689511330; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wu1u3+cqYdXedlVljFd6Ti/kvgoOcPJsiqFbYE8Ctu4=; b=iu7AUMGRAFeD57lrMKjv6H6wa8zL0/tGjRUBrIweZTYZJdU5JszY4AbSLZc6TqWnQMJ8EP cRb9LyDeL7VmV2SeYcirQYkhyix8yxioM9hkZFJVBOjuBYAu5EPzahWQfuUBjq6FJoKaJh /m5kDUoRMNERP5EtWA8erP4tU2wJwOHctSjbt6JzFFZ1VLMwc+dW34/iTIRd/Wx+m+E8xJ OMm19fLRelBcckLK4PuayRdkgSOf1Ph/9q7Hk9btImMhnxp3UufhyU2sh4OngjX/bmiGY2 lGqDEyVy8TWkCdt2Y/ec22yCm9TJSeXt9bVqRzKQMkLtU9WFZ1jkAgaR26OGwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689511330; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wu1u3+cqYdXedlVljFd6Ti/kvgoOcPJsiqFbYE8Ctu4=; b=uOEFcr6rNnofYknL8oh13upA1xeEj5gB8B4CDEAFyMlccwsGMFSJZs61ZKJP9DO6x7Mghh 18fP4ML68A/ChOnblyG5X7T4ooFgyyjyKy1SLPJlLnSNbQP8jaAZziOBMsaVEAnSvsNK54 TcsjK9criVsQS9z4d8HaIzw3X2hjwYxH613Z0WlsiHxIDNBpm5E5f5LD9Gfuga56gOYEjY C1++jywB+dHkL1ckdSa8MzdIPcouYYjmVBJkZQBRINcZ+xuO4RrVPXFFGAtqeRzOqNdFW1 Ojn+TOWvdaCuJLNrjWu+cxjHRXhkZR3FUerzn5ttDIH5VdgnsHV/pIen6QIftQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689511330; a=rsa-sha256; cv=none; b=bTLSjE/r68tVouI1jV+9HC/UiNVCdoYZQBoyCUqgEjdmZpfjlFQRm116qXdzjnHahBXd2y cRf+MY277WLVnxpycyGUJmjRGh8J2/IDLCqM9z04ebaNZzYkfs7P+wpPFIHd0WS+73NigM QWA4E90ovYJo7jiblcUMn8QxK6mjXRYbOYRIbU7TgdmPnex2KD6QCIT2NTJsmcsZosh9r3 yzDpa9+Dfg58DIR6t2Z7Eqwz5XKkDCD76bLhAC32cr1XRJyMY2Q3omVWDSb77vu9hz15Xe 6byLylB/ZrPmfv1d0jZXfOC9w2bssxAtxiMG7udof7yXvSmxgPVX5SrCP45WNA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R3lGV3kdgzj2h; Sun, 16 Jul 2023 12:42:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36GCgAAF095517; Sun, 16 Jul 2023 12:42:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36GCgAot095516; Sun, 16 Jul 2023 12:42:10 GMT (envelope-from git) Date: Sun, 16 Jul 2023 12:42:10 GMT Message-Id: <202307161242.36GCgAot095516@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nicola Vitale Subject: git: b856ee2ca2c1 - main - audio/py-tagpy: Update to 2022.1 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nivit X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b856ee2ca2c10315bb383f94ee374995400aea50 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=b856ee2ca2c10315bb383f94ee374995400aea50 commit b856ee2ca2c10315bb383f94ee374995400aea50 Author: Nicola Vitale AuthorDate: 2023-07-16 12:40:51 +0000 Commit: Nicola Vitale CommitDate: 2023-07-16 12:40:51 +0000 audio/py-tagpy: Update to 2022.1 At the same time fix build on -CURRENT. --- audio/py-tagpy/Makefile | 24 ++++----- audio/py-tagpy/distinfo | 5 +- audio/py-tagpy/files/patch-aksetup__helper.py | 11 ----- audio/py-tagpy/files/patch-src_wrapper_id3.cpp | 58 ++++++++++++++++++++++ audio/py-tagpy/files/patch-src_wrapper_rest.cpp | 66 +++++++++++++++++++++++++ 5 files changed, 140 insertions(+), 24 deletions(-) diff --git a/audio/py-tagpy/Makefile b/audio/py-tagpy/Makefile index 49a576a4966a..fb280b76a5c7 100644 --- a/audio/py-tagpy/Makefile +++ b/audio/py-tagpy/Makefile @@ -1,6 +1,6 @@ PORTNAME= tagpy -PORTVERSION= 2013.1 -PORTREVISION= 22 +PORTVERSION= 2022.1 +PORTREVISION= 0 CATEGORIES= audio python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -15,14 +15,16 @@ LIB_DEPENDS= ${PY_BOOST} \ libtag.so:audio/taglib USES= compiler:c++11-lang python shebangfix -HAS_CONFIGURE= yes -CONFIGURE_SCRIPT= configure.py -CONFIGURE_ARGS= --taglib-inc-dir="${LOCALBASE}/include/taglib" \ - --taglib-lib-dir="${LOCALBASE}/lib" \ - --boost-inc-dir="${PYTHON_INCLUDEDIR},${LOCALBASE}/include" \ - --boost-lib-dir="${PYTHON_LIBDIR},${LOCALBASE}/lib" \ - --boost-python-libname="${PY_BOOST_LIB}" -SHEBANG_FILES= configure.py -USE_PYTHON= distutils autoplist +USE_PYTHON= autoplist distutils + +PYDISTUTILS_BUILD_TARGET= build_ext +PYDISTUTILS_BUILDARGS= --include-dirs="${LOCALBASE}/include/taglib" \ + --include-dirs="${LOCALBASE}/include" \ + --library-dirs="${LOCALBASE}/lib" + +CPPFLAGS+= -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_tagpy.cpython-${PYTHON_SUFFIX}.so .include diff --git a/audio/py-tagpy/distinfo b/audio/py-tagpy/distinfo index d3b4043284f1..29877b76331a 100644 --- a/audio/py-tagpy/distinfo +++ b/audio/py-tagpy/distinfo @@ -1,2 +1,3 @@ -SHA256 (tagpy-2013.1.tar.gz) = 80481c78ce34878e7a1f3231acd781a3bf1b0b569c70ce0e8d63af58061152f4 -SIZE (tagpy-2013.1.tar.gz) = 151463 +TIMESTAMP = 1689488833 +SHA256 (tagpy-2022.1.tar.gz) = 8939bf0ccd7c4e776feccb1d5e7b72f31e11a0c8c5f9e37154bad6a9fa444bff +SIZE (tagpy-2022.1.tar.gz) = 140786 diff --git a/audio/py-tagpy/files/patch-aksetup__helper.py b/audio/py-tagpy/files/patch-aksetup__helper.py deleted file mode 100644 index 9dfc31b75e5e..000000000000 --- a/audio/py-tagpy/files/patch-aksetup__helper.py +++ /dev/null @@ -1,11 +0,0 @@ ---- aksetup_helper.py.orig 2012-12-16 01:56:27 UTC -+++ aksetup_helper.py -@@ -1,6 +1,6 @@ - # dealings with ez_setup ------------------------------------------------------ --import distribute_setup --distribute_setup.use_setuptools() -+#import distribute_setup -+#distribute_setup.use_setuptools() - - import setuptools - from setuptools import Extension diff --git a/audio/py-tagpy/files/patch-src_wrapper_id3.cpp b/audio/py-tagpy/files/patch-src_wrapper_id3.cpp new file mode 100644 index 000000000000..166362a2bbf6 --- /dev/null +++ b/audio/py-tagpy/files/patch-src_wrapper_id3.cpp @@ -0,0 +1,58 @@ +--- src/wrapper/id3.cpp.orig 2022-12-27 17:50:55 UTC ++++ src/wrapper/id3.cpp +@@ -265,7 +265,7 @@ void exposeID3() + { + typedef ID3v2::AttachedPictureFrame cl; + class_, boost::noncopyable> +- ("id3v2_AttachedPictureFrame", init >()) ++ ("id3v2_AttachedPictureFrame", init >()) + .DEF_SIMPLE_METHOD(textEncoding) + .DEF_SIMPLE_METHOD(setTextEncoding) + .DEF_SIMPLE_METHOD(mimeType) +@@ -282,7 +282,7 @@ void exposeID3() + { + typedef ID3v2::CommentsFrame cl; + class_, boost::noncopyable> +- ("id3v2_CommentsFrame", init >()) ++ ("id3v2_CommentsFrame", init >()) + .def(init()) + .DEF_SIMPLE_METHOD(language) + .DEF_SIMPLE_METHOD(setLanguage) +@@ -336,7 +336,7 @@ void exposeID3() + { + typedef ID3v2::TextIdentificationFrame cl; + class_, boost::noncopyable> +- ("id3v2_TextIdentificationFrame", init >()) ++ ("id3v2_TextIdentificationFrame", init >()) + .def("setText", (void (cl::*)(const String &)) &cl::setText) + .def("setText", (void (cl::*)(const StringList &)) &cl::setText) + .DEF_SIMPLE_METHOD(textEncoding) +@@ -348,7 +348,7 @@ void exposeID3() + { + typedef ID3v2::UnsynchronizedLyricsFrame cl; + class_, boost::noncopyable> +- ("id3v2_UnsynchronizedLyricsFrame", init >()) ++ ("id3v2_UnsynchronizedLyricsFrame", init >()) + .def(init()) + .DEF_SIMPLE_METHOD(language) + .DEF_SIMPLE_METHOD(setLanguage) +@@ -363,7 +363,7 @@ void exposeID3() + typedef ID3v2::UserTextIdentificationFrame cl; + class_, boost::noncopyable> + ("id3v2_UserTextIdentificationFrame", init()) +- .def(init >()) ++ .def(init >()) + .DEF_SIMPLE_METHOD(description) + .DEF_SIMPLE_METHOD(setDescription) + .DEF_SIMPLE_METHOD(fieldList) +@@ -420,8 +420,8 @@ void exposeID3() + typedef MPEG::File cl; + class_, boost::noncopyable> + ("mpeg_File", +- init >()) +- .def(init >()) ++ init >()) ++ .def(init >()) + .def("save", + #if (TAGPY_TAGLIB_HEX_VERSION >= 0x10800) + (bool (MPEG::File::*)(int, bool, int)) diff --git a/audio/py-tagpy/files/patch-src_wrapper_rest.cpp b/audio/py-tagpy/files/patch-src_wrapper_rest.cpp new file mode 100644 index 000000000000..f4a36d335f95 --- /dev/null +++ b/audio/py-tagpy/files/patch-src_wrapper_rest.cpp @@ -0,0 +1,66 @@ +--- src/wrapper/rest.cpp.orig 2022-12-23 20:39:57 UTC ++++ src/wrapper/rest.cpp +@@ -84,7 +84,7 @@ void exposeRest() + { + typedef Ogg::XiphComment cl; + class_, boost::noncopyable> +- ("ogg_XiphComment", init >()) ++ ("ogg_XiphComment", init >()) + .DEF_SIMPLE_METHOD(fieldCount) + .def("fieldListMap", &cl::fieldListMap, + return_internal_reference<>()) +@@ -109,14 +109,14 @@ void exposeRest() + { + typedef Ogg::FLAC::File cl; + class_, boost::noncopyable> +- ("ogg_flac_File", init >()) ++ ("ogg_flac_File", init >()) + ; + } + + { + typedef Ogg::Vorbis::File cl; + class_, boost::noncopyable> +- ("ogg_vorbis_File", init >()) ++ ("ogg_vorbis_File", init >()) + ; + } + +@@ -126,7 +126,7 @@ void exposeRest() + { + typedef APE::Footer cl; + class_( +- "ape_Footer", init >()) ++ "ape_Footer", init >()) + .DEF_SIMPLE_METHOD(version) + .DEF_SIMPLE_METHOD(headerPresent) + .DEF_SIMPLE_METHOD(footerPresent) +@@ -193,8 +193,8 @@ void exposeRest() + { + typedef FLAC::File cl; + class_ >("flac_File", +- init >()) +- .def(init >()) ++ init >()) ++ .def(init >()) + .def("ID3v1Tag", + (ID3v1::Tag *(FLAC::File::*)(bool)) + &FLAC::File::ID3v1Tag, +@@ -227,7 +227,7 @@ void exposeRest() + { + typedef MPC::File cl; + class_, boost::noncopyable> +- ("mpc_File", init >()) ++ ("mpc_File", init >()) + .def("ID3v1Tag", + (ID3v1::Tag *(cl::*)(bool)) + &cl::ID3v1Tag, +@@ -255,7 +255,7 @@ void exposeRest() + { + typedef TagLib::RIFF::WAV::File cl; + class_, boost::noncopyable> +- ("wav_File", init >()) ++ ("wav_File", init >()) + .def("ID3v2Tag", + (ID3v2::Tag *(TagLib::RIFF::WAV::File::*)()) + &cl::ID3v2Tag,