diff options
Diffstat (limited to 'media-video/atomicparsley')
5 files changed, 177 insertions, 0 deletions
diff --git a/media-video/atomicparsley/Manifest b/media-video/atomicparsley/Manifest new file mode 100644 index 000000000000..2f5d871502a8 --- /dev/null +++ b/media-video/atomicparsley/Manifest @@ -0,0 +1,7 @@ +AUX atomicparsley-0.9.0-environment.patch 6195 SHA256 842fe5f974962c5a768dc7cb500e153cdfd1d59f07734b70a39a93d6796b3f5c SHA512 99e871d3ec76a4d6ff0c254241a9eca591786712ddce906d4f6df26a57142e28e489c4d289b4d24977cbbe2352d5e537532f82a561d57476cc63e07d2c7e2eb3 WHIRLPOOL 86a7c39f019cf57ec2690e15aea1faed145632b5feffe30160a45009b08fda802797d78e6ea00ee9a1331081356c212f5d7a2293ab8388ec16e9dc77653f5d30 +AUX atomicparsley-0.9.0-glibc-2.10.patch 1988 SHA256 9e0895bcfd2a056e837a58471c62f7ac51d56bbce33eb8d11eddc68a41085b0e SHA512 a139ec08b6918d1a879c97a294f6ec7cafe7c98eb81db977987ca274334347c7954a3f71d9facad72642654e79b3de742ea7ea2c5ec008b79ac89cfb6c936874 WHIRLPOOL 2755c1f2230a5afd17d74184063413817d72ed07c8c8dbb1811fde88a517565ea4988e5198374d3e7908fec554398723a844cee4c236b55157e99b647a71918e +DIST AtomicParsley-source-0.9.0.zip 172616 SHA256 1344a66170e1f324eb43618763dbcfe984ca84c64ea8baf81e99e59657e082f7 SHA512 a4733893bb0d8bf824ee46d7da7f8c2ab9338ae56ea89810db1ac40282554e7e095b3e88631786b248a66aba878f166b9ac403769c66ef3ad45ac8ff7d411982 WHIRLPOOL d492ef1a3bbf77025362ae0fc36bae78e65e13b61e364cc810601f19a3e2d6662cb48a22758e4eabb6ba756aa75ea30e610cc46dfbaa47afc2f7c9e4f8df246f +EBUILD atomicparsley-0.9.0.ebuild 892 SHA256 b3c76fcd2c47cd85ea2e9c091f1897bef6fb5fa1a8fba60b910c80de1721643c SHA512 3482d8caa0237cd3085a955d7da60aab856e81e6cf2686aea9682bed5771610a195e016100989008ccf933a496dd4486bc5fc54afbb305943aae1d26e104106a WHIRLPOOL 33ec80bbb85d000a03ac4976676b31ad7cba3a8a7cb0d4fed665bbe79230829021ffcc7b3016919c34bb3ba6752e4acb3b8634ea5d872c8511e3fbe54187251f +MISC ChangeLog 2541 SHA256 ecc751b8877bbed2afa7f1c3954f8349d37cc41a062ae6da5d3e592e77ec6037 SHA512 120ce0a5b4e4c3df307b7bc61b48477f9d16bfcdfd5fbf232049ca78d92af8c377e8b0ba08ede73db103714ea7e4f5300a027aee0d5d95f05d818ccf4280bfa9 WHIRLPOOL 33ab4abbb926d8cfa0c2199616ae97b0eb3ce9cba3213247fd26592d9b1eefd1c9462b1620a9467bff96b4c8b3222f5460461c30417b8fa1cdeb60b9f9fa376a +MISC ChangeLog-2015 2498 SHA256 e25c0785c396bec645deeda068caf874a6cf260c868f7e363fd68279cce90715 SHA512 9d092c36563ac4da3fdb346d5f10e8c7aab433e4f5426ed5d8bd5bed6375029dc8b667c635fa2b61588d3d47f5fec48edf4df62b838a8d273181e2983249becc WHIRLPOOL 24c5fc44d5ee50ccff9002d0f55396c3061609c29f9563c50eedfc016707160093fee798400679419322340a082d132381866c3e1a377ebbbb6e8e2db7aba6b0 +MISC metadata.xml 306 SHA256 6383242db3fa3c4574f6532581b24e6bd255aae01a07dc908a0cab94008e186c SHA512 db5fd17c01260020d0e1df5ffc2dcb3f4c904467b627256f004e13aad5de0c89ea67fe53d7a8092a0549ee6e4acbf30d6a6820329ac45511c210504e94aeae2a WHIRLPOOL 1a98adc6d00866fccd2b94fc9c5bfe8dcf699a86777a4fc4b5d4cc71e0a8abd20aa72a90b762c9afd70e5583547e12e698755a1e92067581a6cb45aa465771c0 diff --git a/media-video/atomicparsley/atomicparsley-0.9.0.ebuild b/media-video/atomicparsley/atomicparsley-0.9.0.ebuild new file mode 100644 index 000000000000..c80ea969acdf --- /dev/null +++ b/media-video/atomicparsley/atomicparsley-0.9.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +MY_P=AtomicParsley-source-${PV} + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="command line program for reading, parsing and setting iTunes-style metadata in MPEG4 files" +HOMEPAGE="http://atomicparsley.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 sparc x86" +IUSE="" + +RDEPEND="" +DEPEND="app-arch/unzip" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-glibc-2.10.patch \ + "${FILESDIR}"/${P}-environment.patch +} + +src_compile() { + # APar_sha1.cpp:116:47 and 117:43: warning: dereferencing type-punned + # pointer will break strict-aliasing rules + append-flags -fno-strict-aliasing + tc-export CXX + ./build || die +} + +src_install() { + dobin AtomicParsley + dodoc *.{txt,rtf} +} diff --git a/media-video/atomicparsley/files/atomicparsley-0.9.0-environment.patch b/media-video/atomicparsley/files/atomicparsley-0.9.0-environment.patch new file mode 100644 index 000000000000..6db9c79a3275 --- /dev/null +++ b/media-video/atomicparsley/files/atomicparsley-0.9.0-environment.patch @@ -0,0 +1,80 @@ +diff -ur AtomicParsley-source-0.9.0.orig/build AtomicParsley-source-0.9.0/build +--- AtomicParsley-source-0.9.0.orig/build 2006-09-10 18:02:58.000000000 +0300 ++++ AtomicParsley-source-0.9.0/build 2009-07-22 01:19:39.000000000 +0300 +@@ -39,45 +39,45 @@ + + echo "Compiling AP_commons.cpp ..." + +-g++ -g -O2 -Wall -MT obj_files/AP_commons.o -MD -MP -MF "./obj_files/AP_commons.Tpo" -c -o obj_files/AP_commons.o AP_commons.cpp ++${CXX} ${CXXFLAGS} -Wall -MT obj_files/AP_commons.o -MD -MP -MF "./obj_files/AP_commons.Tpo" -c -o obj_files/AP_commons.o AP_commons.cpp + + echo "Compiling AtomicParsley_genres.cpp ..." + +-g++ -g -O2 -Wall -MT obj_files/AtomicParsley_genres.o -MD -MP -MF "./obj_files/AtomicParsley_genres.Tpo" -c -o obj_files/AtomicParsley_genres.o AtomicParsley_genres.cpp ++${CXX} ${CXXFLAGS} -Wall -MT obj_files/AtomicParsley_genres.o -MD -MP -MF "./obj_files/AtomicParsley_genres.Tpo" -c -o obj_files/AtomicParsley_genres.o AtomicParsley_genres.cpp + + echo "Compiling AP_iconv.cpp ..." + +-g++ -g -O2 -Wall $EXTRA_CPP_FLAGS -MT AP_iconv.o -MD -MP -MF "./obj_files/AP_iconv.Tpo" -c -o obj_files/AP_iconv.o AP_iconv.cpp ++${CXX} ${CXXFLAGS} -Wall $EXTRA_CPP_FLAGS -MT AP_iconv.o -MD -MP -MF "./obj_files/AP_iconv.Tpo" -c -o obj_files/AP_iconv.o AP_iconv.cpp + + if test $OS = Darwin ; then + echo "Compiling AP_NSFile_utils.mm ..." + +- g++ -g -O2 -Wall -MT obj_files/AP_NSFile_utils.o -MD -MP -MF "./obj_files/AP_NSFile_utils.Tpo" -c -o obj_files/AP_NSFile_utils.o AP_NSFile_utils.mm ++ ${CXX} ${CXXFLAGS} -Wall -MT obj_files/AP_NSFile_utils.o -MD -MP -MF "./obj_files/AP_NSFile_utils.Tpo" -c -o obj_files/AP_NSFile_utils.o AP_NSFile_utils.mm + + echo "Compiling AP_NSImage.mm ..." + +- g++ -g -O2 -Wall -MT obj_files/AP_NSImage.o -MD -MP -MF "./obj_files/AP_NSImage.Tpo" -c -o obj_files/AP_NSImage.o AP_NSImage.mm ++ ${CXX} ${CXXFLAGS} -Wall -MT obj_files/AP_NSImage.o -MD -MP -MF "./obj_files/AP_NSImage.Tpo" -c -o obj_files/AP_NSImage.o AP_NSImage.mm + fi + + echo "Compiling AtomicParsley.cpp ..." + +-g++ -g -O2 -Wall -Wno-unused $EXTRA_CPP_FLAGS -MT obj_files/AtomicParsley.o -MD -MP -MF "./obj_files/AtomicParsley.Tpo" -c -o obj_files/AtomicParsley.o AtomicParsley.cpp ++${CXX} ${CXXFLAGS} -Wall -Wno-unused $EXTRA_CPP_FLAGS -MT obj_files/AtomicParsley.o -MD -MP -MF "./obj_files/AtomicParsley.Tpo" -c -o obj_files/AtomicParsley.o AtomicParsley.cpp + + echo "Compiling AP_AtomExtracts.cpp ..." + +-g++ -g -O2 -Wall $EXTRA_CPP_FLAGS -I../AtomicParsley -MT obj_files/AP_AtomExtracts.o -MD -MP -MF "./obj_files/AP_AtomExtracts.Tpo" -c -o obj_files/AP_AtomExtracts.o AP_AtomExtracts.cpp ++${CXX} ${CXXFLAGS} -Wall $EXTRA_CPP_FLAGS -I../AtomicParsley -MT obj_files/AP_AtomExtracts.o -MD -MP -MF "./obj_files/AP_AtomExtracts.Tpo" -c -o obj_files/AP_AtomExtracts.o AP_AtomExtracts.cpp + + echo "Compiling APar_sha1.cpp ..." + +-g++ -g -O2 -Wall $EXTRA_CPP_FLAGS -I../AtomicParsley -MT obj_files/APar_sha1.o -MD -MP -MF "./obj_files/APar_sha1.Tpo" -c -o obj_files/APar_sha1.o APar_sha1.cpp ++${CXX} ${CXXFLAGS} -Wall $EXTRA_CPP_FLAGS -I../AtomicParsley -MT obj_files/APar_sha1.o -MD -MP -MF "./obj_files/APar_sha1.Tpo" -c -o obj_files/APar_sha1.o APar_sha1.cpp + + echo "Compiling APar_uuid.cpp ..." + +-g++ -g -O2 -Wall $EXTRA_CPP_FLAGS -I../AtomicParsley -MT obj_files/APar_uuid.o -MD -MP -MF "./obj_files/APar_uuid.Tpo" -c -o obj_files/APar_uuid.o APar_uuid.cpp ++${CXX} ${CXXFLAGS} -Wall $EXTRA_CPP_FLAGS -I../AtomicParsley -MT obj_files/APar_uuid.o -MD -MP -MF "./obj_files/APar_uuid.Tpo" -c -o obj_files/APar_uuid.o APar_uuid.cpp + + echo "Compiling main.cpp ..." + +-g++ -g -O2 -Wall $EXTRA_CPP_FLAGS -I../AtomicParsley -MT obj_files/main.o -MD -MP -MF "./obj_files/main.Tpo" -c -o obj_files/main.o main.cpp ++${CXX} ${CXXFLAGS} -Wall $EXTRA_CPP_FLAGS -I../AtomicParsley -MT obj_files/main.o -MD -MP -MF "./obj_files/main.Tpo" -c -o obj_files/main.o main.cpp + + #---------------------------------------------# + # Linking # +@@ -85,16 +85,16 @@ + echo "Linking AtomicParsley..." + + if test $OS = Darwin ; then +- g++ -g -O2 -Wall -framework Cocoa -o AtomicParsley obj_files/APar_sha1.o obj_files/APar_uuid.o obj_files/AP_commons.o obj_files/AtomicParsley_genres.o obj_files/AP_iconv.o obj_files/AP_NSFile_utils.o obj_files/AP_NSImage.o obj_files/AP_AtomExtracts.o obj_files/AtomicParsley.o obj_files/main.o ++ ${CXX} ${LDFLAGS} -Wall -framework Cocoa -o AtomicParsley obj_files/APar_sha1.o obj_files/APar_uuid.o obj_files/AP_commons.o obj_files/AtomicParsley_genres.o obj_files/AP_iconv.o obj_files/AP_NSFile_utils.o obj_files/AP_NSImage.o obj_files/AP_AtomExtracts.o obj_files/AtomicParsley.o obj_files/main.o + + elif test $OS = Linux ; then +- g++ -O2 -Wall -o AtomicParsley obj_files/APar_sha1.o obj_files/APar_uuid.o obj_files/AP_commons.o obj_files/AtomicParsley_genres.o obj_files/AP_iconv.o obj_files/AP_AtomExtracts.o obj_files/AtomicParsley.o obj_files/main.o ++ ${CXX} ${LDFLAGS} -Wall -o AtomicParsley obj_files/APar_sha1.o obj_files/APar_uuid.o obj_files/AP_commons.o obj_files/AtomicParsley_genres.o obj_files/AP_iconv.o obj_files/AP_AtomExtracts.o obj_files/AtomicParsley.o obj_files/main.o + + elif test $OS = CYGWIN ; then +- g++ -g -O2 -Wall -o AtomicParsley.exe obj_files/APar_sha1.o obj_files/APar_uuid.o obj_files/AP_commons.o obj_files/AtomicParsley_genres.o obj_files/AP_iconv.o obj_files/AP_AtomExtracts.o obj_files/AtomicParsley.o obj_files/main.o -lgcc ++ ${CXX} ${LDFLAGS} -Wall -o AtomicParsley.exe obj_files/APar_sha1.o obj_files/APar_uuid.o obj_files/AP_commons.o obj_files/AtomicParsley_genres.o obj_files/AP_iconv.o obj_files/AP_AtomExtracts.o obj_files/AtomicParsley.o obj_files/main.o -lgcc + + else +- g++ -g -O2 -Wall -o AtomicParsley.exe obj_files/APar_sha1.o obj_files/APar_uuid.o obj_files/AP_commons.o obj_files/AtomicParsley_genres.o obj_files/AP_iconv.o obj_files/AP_AtomExtracts.o obj_files/AtomicParsley.o obj_files/main.o ++ ${CXX} ${CXXFLAGS} -Wall -o AtomicParsley.exe obj_files/APar_sha1.o obj_files/APar_uuid.o obj_files/AP_commons.o obj_files/AtomicParsley_genres.o obj_files/AP_iconv.o obj_files/AP_AtomExtracts.o obj_files/AtomicParsley.o obj_files/main.o + fi + + #---------------------------------------------# diff --git a/media-video/atomicparsley/files/atomicparsley-0.9.0-glibc-2.10.patch b/media-video/atomicparsley/files/atomicparsley-0.9.0-glibc-2.10.patch new file mode 100644 index 000000000000..0397a4e42bca --- /dev/null +++ b/media-video/atomicparsley/files/atomicparsley-0.9.0-glibc-2.10.patch @@ -0,0 +1,39 @@ +diff -ur AtomicParsley-source-0.9.0.orig/AtomicParsley.cpp AtomicParsley-source-0.9.0/AtomicParsley.cpp +--- AtomicParsley-source-0.9.0.orig/AtomicParsley.cpp 2006-09-16 02:22:33.000000000 +0300 ++++ AtomicParsley-source-0.9.0/AtomicParsley.cpp 2009-07-22 00:52:48.000000000 +0300 +@@ -1447,7 +1447,7 @@ + uint32_t atom_offsets = 0; + char* uuid_outfile = (char*)calloc(1, sizeof(char)*MAXPATHLEN+1); //malloc a new string because it may be a cli arg for a specific output path + if (output_path == NULL) { +- char* orig_suffix = strrchr(originating_file, '.'); ++ const char* orig_suffix = strrchr(originating_file, '.'); + if (orig_suffix == NULL) { + fprintf(stdout, "AP warning: a file extension for the input file was not found.\n\tGlobbing onto original filename...\n"); + path_len = strlen(originating_file); +@@ -4462,7 +4462,7 @@ + #endif + + void APar_DeriveNewPath(const char *filePath, char* temp_path, int output_type, const char* file_kind, char* forced_suffix, bool random_filename = true) { +- char* suffix = NULL; ++ const char* suffix = NULL; + if (forced_suffix == NULL) { + suffix = strrchr(filePath, '.'); + } else { +@@ -4480,7 +4480,7 @@ + memcpy(temp_path, filePath, base_len); + memcpy(temp_path + base_len, file_kind, strlen(file_kind)); + #else +- char* file_name = strrchr(filePath, '/'); ++ const char* file_name = strrchr(filePath, '/'); + size_t file_name_len = strlen(file_name); + memcpy(temp_path, filePath, filepath_len-file_name_len+1); + memcpy(temp_path + strlen(temp_path), ".", 1); +@@ -5006,7 +5006,7 @@ + free_modified_name = true; + if (forced_suffix_type == FORCE_M4B_TYPE) { //using --stik Audiobook with --overWrite will change the original file's extension + uint16_t filename_len = strlen(m4aFile); +- char* suffix = strrchr(m4aFile, '.'); ++ const char* suffix = strrchr(m4aFile, '.'); + memcpy(originating_file, m4aFile, filename_len+1 ); + memcpy(originating_file + (filename_len - strlen(suffix) ), ".m4b", 5 ); + } diff --git a/media-video/atomicparsley/metadata.xml b/media-video/atomicparsley/metadata.xml new file mode 100644 index 000000000000..52009b050aaa --- /dev/null +++ b/media-video/atomicparsley/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>media-video@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">atomicparsley</remote-id> + </upstream> +</pkgmetadata> |