diff --git a/hardware/optical/dvd+rw-tools/actions.py b/hardware/optical/dvd+rw-tools/actions.py new file mode 100644 index 0000000000..4ae85a1c06 --- /dev/null +++ b/hardware/optical/dvd+rw-tools/actions.py @@ -0,0 +1,26 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def setup(): + pisitools.dosed("Makefile.m4", "^CFLAGS.*\+=\$\(WARN\).*", "CFLAGS=" + get.CFLAGS()) + pisitools.dosed("Makefile.m4", "^CXXFLAGS+=\$\(WARN\).*", "CXXFLAGS=" + get.CXXFLAGS() + " -fno-exceptions") + +def build(): + autotools.make("CC='%s' CXX='%s'" % (get.CC(), get.CXX())) + +def install(): + pisitools.dobin("dvd+rw-booktype") + pisitools.dobin("dvd+rw-format") + pisitools.dobin("dvd+rw-mediainfo") + pisitools.dobin("dvd-ram-control") + pisitools.dobin("growisofs") + + pisitools.dohtml(".") + pisitools.doman("growisofs.1") diff --git a/hardware/optical/dvd+rw-tools/files/dvd+rw-tools-7.0-dvddl.patch b/hardware/optical/dvd+rw-tools/files/dvd+rw-tools-7.0-dvddl.patch new file mode 100644 index 0000000000..c1c6fb3332 --- /dev/null +++ b/hardware/optical/dvd+rw-tools/files/dvd+rw-tools-7.0-dvddl.patch @@ -0,0 +1,13 @@ +--- ./growisofs_mmc.cpp.joe 2006-04-27 20:45:00.788446635 +0200 ++++ ./growisofs_mmc.cpp 2006-04-27 20:46:01.666824300 +0200 +@@ -1412,9 +1412,7 @@ + blocks += 15, blocks &= ~15; + + if (blocks <= split) +- fprintf (stderr,":-( more than 50%% of space will be *wasted*!\n" +- " use single layer media for this recording\n"), +- exit (FATAL_START(EMEDIUMTYPE)); ++ fprintf (stderr,":-? more than 50%% of space will be *wasted*!\n"); + + blocks /= 16; + blocks += 1; diff --git a/hardware/optical/dvd+rw-tools/files/dvd+rw-tools-7.0-wctomb.patch b/hardware/optical/dvd+rw-tools/files/dvd+rw-tools-7.0-wctomb.patch new file mode 100644 index 0000000000..37b245314f --- /dev/null +++ b/hardware/optical/dvd+rw-tools/files/dvd+rw-tools-7.0-wctomb.patch @@ -0,0 +1,11 @@ +--- dvd/transport.hxx~ 2008-03-25 21:24:47.000000000 -0400 ++++ dvd/transport.hxx 2008-03-25 21:25:36.000000000 -0400 +@@ -116,7 +116,7 @@ + extern "C" char *plusminus_locale() + { static class __plusminus { + private: +- char str[4]; ++ char str[MB_LEN_MAX]; + public: + __plusminus() { setlocale(LC_CTYPE,ENV_LOCALE); + int l = wctomb(str,(wchar_t)(unsigned char)'±'); diff --git a/hardware/optical/dvd+rw-tools/files/dvd+rw-tools-7.0-wexit.patch b/hardware/optical/dvd+rw-tools/files/dvd+rw-tools-7.0-wexit.patch new file mode 100644 index 0000000000..e7910cbdd7 --- /dev/null +++ b/hardware/optical/dvd+rw-tools/files/dvd+rw-tools-7.0-wexit.patch @@ -0,0 +1,11 @@ +--- dvd+rw-tools-7.0/dvd+rw-format.cpp.wexit 2007-06-21 12:42:30.000000000 +0200 ++++ dvd+rw-tools-7.0/dvd+rw-format.cpp 2007-06-21 12:44:13.000000000 +0200 +@@ -245,7 +245,7 @@ int main (int argc, char *argv[]) + alarm(1); + while ((waitpid(pid,&i,0) != pid) && !WIFEXITED(i)) ; + if (WEXITSTATUS(i) == 0) fprintf (stderr,"\n"); +- exit (0); ++ exit (WEXITSTATUS(i)); + } + #endif + diff --git a/hardware/optical/dvd+rw-tools/files/gcc-4.3.patch b/hardware/optical/dvd+rw-tools/files/gcc-4.3.patch new file mode 100644 index 0000000000..40fa271c69 --- /dev/null +++ b/hardware/optical/dvd+rw-tools/files/gcc-4.3.patch @@ -0,0 +1,10 @@ +--- transport.hxx 2008-01-23 12:01:45.000000000 +0200 ++++ transport.hxx 2008-01-23 12:02:12.000000000 +0200 +@@ -16,6 +16,7 @@ + #include + #include + #include ++#include + + inline long getmsecs() + { struct timeval tv; diff --git a/hardware/optical/dvd+rw-tools/pspec.xml b/hardware/optical/dvd+rw-tools/pspec.xml new file mode 100644 index 0000000000..160071ed0e --- /dev/null +++ b/hardware/optical/dvd+rw-tools/pspec.xml @@ -0,0 +1,47 @@ + + + + + dvd+rw-tools + http://fy.chalmers.se/~appro/linux/DVD+RW/ + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + app:console + Tools for DVD+RW/-RW drives + dvd+rw-tools is a set of tools to work with DVD+-RW drives. + http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-7.1.tar.gz + + dvd+rw-tools-7.0-dvddl.patch + dvd+rw-tools-7.0-wctomb.patch + dvd+rw-tools-7.0-wexit.patch + gcc-4.3.patch + + + + + dvd+rw-tools + + + cdrkit + libgcc + + + /usr/bin + /usr/share/doc + /usr/share/man + + + + + + 2016-10-09 + 7.1 + First release + Pisi Linux Admins + admins@pisilinux.org + + + diff --git a/hardware/optical/dvd+rw-tools/translations.xml b/hardware/optical/dvd+rw-tools/translations.xml new file mode 100644 index 0000000000..1ddba3dfcd --- /dev/null +++ b/hardware/optical/dvd+rw-tools/translations.xml @@ -0,0 +1,7 @@ + + + + dvd+rw-tools + DVD+RW/-RW sürücüler için birtakım araçlar + +