diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-video/vstrip |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-video/vstrip')
-rw-r--r-- | media-video/vstrip/Manifest | 6 | ||||
-rw-r--r-- | media-video/vstrip/files/vstrip-0.8f-gentoo.patch | 63 | ||||
-rw-r--r-- | media-video/vstrip/metadata.xml | 10 | ||||
-rw-r--r-- | media-video/vstrip/vstrip-0.8f.ebuild | 38 |
4 files changed, 117 insertions, 0 deletions
diff --git a/media-video/vstrip/Manifest b/media-video/vstrip/Manifest new file mode 100644 index 000000000000..d6296d71c0cf --- /dev/null +++ b/media-video/vstrip/Manifest @@ -0,0 +1,6 @@ +AUX vstrip-0.8f-gentoo.patch 2035 SHA256 8b861a3278397dc67f0a00e49be4b1a61915351951acb2799e732eab3f889760 SHA512 c304726b9575975125888abb82e0099715e4f54ba6193844072e02986ea363b852114b704caba963cae4680f762c88bed77f4584a7865b825e4a23f1ee3a31f7 WHIRLPOOL eb5c7acd4c27ddf2cb38945e87e4287559648a5561a8c05e0e080323e5bd599f14fce2968c65bb83c12b420e77c00613f942efb302904f64c6382172bab808e9 +DIST vStrip_08f.zip 409157 SHA256 0813be0b20ab7eeacd7213df7fe1704ef6070471c953a705391d82bba78e8fff SHA512 5b8fa07e923709aa0defcbe3ad6fced02eddd5cacc7c33a5ec777e1d64d1e33f3163c82c7fd74eb80f02833c75593e7fe544fa93a56271926a51dbc663f39276 WHIRLPOOL b367dd3df8491789190d931df38779d935ac5e653e671442fe791195401e61758151f06c65689348e03d0628ea3ca20b7880a45c5fbe18e4bfbdcb051c3594f8 +EBUILD vstrip-0.8f.ebuild 735 SHA256 bdc60b5121f041d09b2be48fdfcc866967121f35a25ad1156e3c9f516edc5dd8 SHA512 4322863fd6df0c37ac11c8e918ac37c878f2b9e9fdc18bb4323b6d105226be661766239935ec648932548647318d9eeb17773e0193d49b42a58c5ddbb90cb48f WHIRLPOOL e7a5d02de2131408c3731ed120fb8801b1c3d64c8e742ffcb020a26918cf35fbf3f9b1195dc499a147bfccc12e2af0e3ff373ad2082be88b9834cd498ebceb24 +MISC ChangeLog 2851 SHA256 6dd1739a1a09d7200612234319883b5c9ab53db12d1056d0fed7075aca9e8e08 SHA512 ee4b71ca8dc57f493875e07d9bc50562aec80fe8b78fdc902a3ce4b1c14243ccaf122f2b9ef170f1ded103d0c6751cd1785c21c4ed173d0596bcf4b771086b6c WHIRLPOOL 8e110b06ae20759cdefb269e66691e6d0561e51b13e5b2ba1350efc94842991db5bd32e009ca606181b7bc49d81b1b9a615cafac36e99c6220c7c7cb309dd09c +MISC ChangeLog-2015 1140 SHA256 5d0a471d892085508cc5a1420db4f90706a706c529b68aad59e2281ed6e99b5c SHA512 a9d5a18ee32c9f6857714c890bcc71295e15ff3470eebfdfe4eca45177a5cbfcfe29c8e3c57df322487dd1b1b366657ca4e317f135bbff1e049b75e4dad36968 WHIRLPOOL 07e7c953c37e3b4afcd4f14e94cd3fa07c23b4002bf1494751eea91b8033bde9666ac2364ff4267c5419976196f304c965a5305acb5dc215acc00479f04d9060 +MISC metadata.xml 331 SHA256 a181f0d9cb5e82f244810aa5a99a4cb75bc07a6d0b2309fd9368482be5567d0e SHA512 b01bf58ac5f7ecdc703ffc83ca687e07153770a7880084c245e6d8b868329dcca116680d3d7e41f1637343f9d825417f615f18a117952222f82f7d655f5d9d0b WHIRLPOOL b9656c546a56a678c05e4220753737af093141935be0932e7b70e60fcbc6704564957461117cd0b20badff0b45ad7742d90f962416197d3ad620cdce07cbad59 diff --git a/media-video/vstrip/files/vstrip-0.8f-gentoo.patch b/media-video/vstrip/files/vstrip-0.8f-gentoo.patch new file mode 100644 index 000000000000..77328b091247 --- /dev/null +++ b/media-video/vstrip/files/vstrip-0.8f-gentoo.patch @@ -0,0 +1,63 @@ +--- Makefile ++++ Makefile 2003-10-12 02:25:31.000000000 +0000 +@@ -4,7 +4,7 @@ +
+ ### Sources
+
+-SOURCE_FILES=file_io.h file_io.c in_buffer.h in_buffer.c parse_ifo.h parse_ifo.c s_types.h main.c vstrip.h vstrip.c
++SOURCE_FILES=file_io.h file_io.c in_buffer.h in_buffer.c parse_ifo.h parse_ifo.c s_types.h main.c vstrip.h vstrip.c dvd2avi_plugin.c
+
+ ### Objects and executables
+
+@@ -27,8 +27,8 @@ +
+ ### Details
+
+-vstrip : file_io.o in_buffer.o main.o parse_ifo.o vstrip.o
+- $(CC) -g file_io.o in_buffer.o main.o parse_ifo.o vstrip.o -o vstrip
++vstrip : file_io.o in_buffer.o main.o parse_ifo.o vstrip.o dvd2avi_plugin.o
++ $(CC) $(LDFLAGS) file_io.o in_buffer.o main.o parse_ifo.o vstrip.o dvd2avi_plugin.o -o vstrip -lm
+ file_io.o : s_types.h file_io.h file_io.c
+ in_buffer.o : s_types.h file_io.h in_buffer.h in_buffer.c
+ main.o : s_types.h file_io.h vstrip.h main.c
+--- dvd2avi_plugin.c ++++ dvd2avi_plugin.c 2003-10-12 02:29:23.000000000 +0000 +@@ -6,13 +6,17 @@ +
+ *************************************************************************/
+
++#include <string.h>
++#include <stdlib.h>
+ #include <stdio.h>
+-#include <io.h>
++#include <sys/io.h>
+ #include <fcntl.h>
+ #include "s_types.h"
+ #include "vstrip.h"
+ #include "dvd2avi_plugin.h"
+
++#define max(a,b) a < b ? b : a
++
+ bool dvd2avi_process(byte *data, tp_vs_streaminfo const si, void *user_data)
+ {
+ t_dvd2avi* d2v = (t_dvd2avi *)user_data;
+@@ -206,7 +210,7 @@ + fp = _open(fname, _O_BINARY | _O_RDONLY); // check size
+ if (fp != -1)
+ {
+- __int64 fposition = _filelengthi64(fp);
++ __int64_t fposition = lseek64(fp, 0, SEEK_END);
+
+ lba = (dword)(fposition / fio_SECTOR_SIZE);
+ _close(fp);
+--- file_io.c ++++ file_io.c 2003-10-12 02:24:46.000000000 +0000 +@@ -32,7 +32,7 @@ + fp = _open(name, _O_BINARY | _O_RDONLY); // check size
+ if (fp != -1)
+ {
+- __int64 fposition = _filelengthi64(fp);
++ __int64_t fposition = lseek64(fp, 0, SEEK_END);
+
+ f->written_to = fposition > 0;
+ if (fposition > 0)
diff --git a/media-video/vstrip/metadata.xml b/media-video/vstrip/metadata.xml new file mode 100644 index 000000000000..346d6849468e --- /dev/null +++ b/media-video/vstrip/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> +<longdescription lang="en"> +A program to divide a non encrypted vob by individiual chapters +</longdescription> +</pkgmetadata> diff --git a/media-video/vstrip/vstrip-0.8f.ebuild b/media-video/vstrip/vstrip-0.8f.ebuild new file mode 100644 index 000000000000..ac2ff90773a0 --- /dev/null +++ b/media-video/vstrip/vstrip-0.8f.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils toolchain-funcs + +DESCRIPTION="A program to split non-css dvd vobs into individual chapters" +HOMEPAGE="http://www.maven.de/code" +SRC_URI="http://files.digital-digest.com/downloads/files/encode/vStrip_${PV/./}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND="" + +S="${WORKDIR}/${PN}" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-gentoo.patch + edos2unix *.c *.h + + for file in *.c *.h ; do + echo >>$file + done +} + +src_compile() { + emake CFLAGS="${CFLAGS} -D__UNIX__" CC="$(tc-getCC)" || die "emake failed." +} + +src_install() { + dobin vstrip +} |