diff options
Diffstat (limited to 'media-sound/id3ted')
-rw-r--r-- | media-sound/id3ted/Manifest | 2 | ||||
-rw-r--r-- | media-sound/id3ted/files/id3ted-1.0-fix-build-taglib2.patch | 47 | ||||
-rw-r--r-- | media-sound/id3ted/id3ted-1.0-r1.ebuild | 29 |
3 files changed, 78 insertions, 0 deletions
diff --git a/media-sound/id3ted/Manifest b/media-sound/id3ted/Manifest index ffd447d64dd9..025935446913 100644 --- a/media-sound/id3ted/Manifest +++ b/media-sound/id3ted/Manifest @@ -1,4 +1,6 @@ +AUX id3ted-1.0-fix-build-taglib2.patch 1196 BLAKE2B 7b07e84117a989b32808e51f12948e5f1f8398a1ae35e6944e1b78d59c330d9ff55b1bb7bdeb010fa6fdce2eae75f70529efee280fa5ebb5949a0ab50ac9073a SHA512 473dca5eb5368daa1a0c1eaab5da41b2187b5544ab136b089317547552a8b5ee72e659b3dbf6936d7d714f183c5df7996bdcb74094751c68e74c047c80ef7a44 AUX id3ted-1.0-outofbounds.patch 713 BLAKE2B f0e61828e73939d3497402d7b37d751e42393ff72d64be20c3c4f7f48ce9b484e1ccaf9915c291b35b0e21efab3c5a2419cff4c101b79176b8603851bced1855 SHA512 942b1858bcd917c2a0c3be023f666bcc38b364edce976ab3f3f9f4d16f1822240aedb33965086f5f67832096fa408e24d6c85cfe91a2adc1cc84bee8d4ebef9a DIST id3ted-1.0.tar.gz 32792 BLAKE2B 3df3a5a48302ecac6dbccbf7ddacb3db193e67f8352159d3c31763d03e6bf48c46c2aaf056b0d08649e33c7d4440f72a0dc1869b3d0978cba470bc2b609ff804 SHA512 ba135779ac8bb7e83d77737babc836a2bbf4cd7efd4ffad5aa982ec9f6c57d0479f0bdf017e62d62dddffcadab88ab7b3f07408d173d013b794d20bccd5218ee +EBUILD id3ted-1.0-r1.ebuild 571 BLAKE2B 2eefd19992538cf48b4d5060160276172fb7cfd76beec89a446922ad7753a6f3177598c93cd4fae9d19c593c31cd021481beae00aa002bd54d96759e7314325d SHA512 8934adb0399f3c7df898c09d6ddb6085755365cabefa2f88dbb57bdf828cc76a89094a6681c236f4509ea8015a2236d2a39355020f37736d2a1b4ce297a94e68 EBUILD id3ted-1.0.ebuild 522 BLAKE2B 7d8e4b2f7468f322ad7a89bc3045e5de41cd79daa5b6ca216a2bfa07f88b857005aa146f97d51adfc222060ae573dcf8823b5390a9ce7b63af06dbfe808cf32c SHA512 25d8de6f12289ab5e6b4e198290905519a5cec695c01f6723515351c671da224ee3af199a7a5a3198d781cdfcebe7b1009aef422e51cd24ffa83a6c0d5119431 MISC metadata.xml 332 BLAKE2B 334479ea638a19a34ba707e9539088918fc3bd548988716453ed8a2228dba6a3c6b008d205e5fc41a80587f5a7812e43f8b998fc4e5febc27e80dedd407c688f SHA512 d8d493c1adcd88d1a8f3126e66dc560cac3ce4e4484f1a109b10263b56a249bab5923eeecdb4008b0cc6caaa78e35360f818118ee542744e607f96cc893688b0 diff --git a/media-sound/id3ted/files/id3ted-1.0-fix-build-taglib2.patch b/media-sound/id3ted/files/id3ted-1.0-fix-build-taglib2.patch new file mode 100644 index 000000000000..46437c6d10e5 --- /dev/null +++ b/media-sound/id3ted/files/id3ted-1.0-fix-build-taglib2.patch @@ -0,0 +1,47 @@ +no upstream PR as repo is archive +--- a/fileio.cpp ++++ b/fileio.cpp +@@ -60,11 +60,11 @@ bool FileIO::isRegular(const char *path) { + + + bool FileIO::isReadable(const char *path) { +- return TagLib::File::isReadable(path); ++ return !access(path, R_OK); + } + + bool FileIO::isWritable(const char *path) { +- return TagLib::File::isWritable(path); ++ return !access(path, W_OK); + } + + string FileIO::sizeHumanReadable(unsigned long size) { +--- a/id3ted.h ++++ b/id3ted.h +@@ -30,7 +30,6 @@ + + using namespace std; + using namespace TagLib; +-using TagLib::uint; + + void warn(const char* fmt, ...); + +--- a/mp3file.cpp ++++ b/mp3file.cpp +@@ -343,7 +343,7 @@ bool MP3File::save() { + if (tags & 2 && id3v2Tag != NULL && id3v2Tag->isEmpty()) + strip(2); + +- return file.save(tags, false); ++ return file.save(); + } + + bool MP3File::strip(int tags) { +@@ -391,7 +391,7 @@ void MP3File::showInfo() const { + break; + } + +- int length = properties->length(); ++ int length = properties->lengthInSeconds(); + printf("MPEG %s Layer %d %s\n", version, properties->layer(), channelMode); + printf("bitrate: %d kBit/s, sample rate: %d Hz, length: %02d:%02d:%02d\n", + properties->bitrate(), properties->sampleRate(), diff --git a/media-sound/id3ted/id3ted-1.0-r1.ebuild b/media-sound/id3ted/id3ted-1.0-r1.ebuild new file mode 100644 index 000000000000..6c16c266036b --- /dev/null +++ b/media-sound/id3ted/id3ted-1.0-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="A Command-line ID3 Tag Editor" +HOMEPAGE="https://github.com/xyb3rt/id3ted" +SRC_URI="https://github.com/xyb3rt/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + media-libs/taglib:= + sys-apps/file" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-outofbounds.patch" + "${FILESDIR}/${P}-fix-build-taglib2.patch" +) + +pkg_setup() { + export PREFIX="/usr" + tc-export CXX +} |