git.iko.soy/typeable/nixpkgs
on master help sign in
tvtime: remove dead package

Upstream dried up in 2005. Not updated since 2012, broken since 2013. cc @qknight

commit5989c97665bf56e5ce2ae23e62720430ad676c63 authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> dateTue 5 Jan 2016, 01:58 (11 years ago) parent4df7006
9 files changed−296
pkgs/applications/video/tvtime/default.nix−65 pkgs/applications/video/tvtime/tvtime-1.0.2-autotools.patch−73 pkgs/applications/video/tvtime/tvtime-1.0.2-gcc41.patch−57 pkgs/applications/video/tvtime/tvtime-1.0.2-glibc-2.10.patch−24 pkgs/applications/video/tvtime/tvtime-1.0.2-libsupc++.patch−16 pkgs/applications/video/tvtime/tvtime-1.0.2-xinerama.patch−32 pkgs/applications/video/tvtime/tvtime-libpng-1.5.patch−14 pkgs/applications/video/tvtime/tvtime-pic.patch−11 pkgs/top-level/all-packages.nix−4
pkgs/applications/video/tvtime/default.nixdeleted−65
@@ -1,65 +0,0 @@
1−{stdenv, fetchurl, xorg, libX11, libXtst, libSM, libXext, libXv, libXxf86vm, libXau,
2− libXdmcp, zlib, libpng, libxml2, freetype, libICE, intltool, libXinerama, gettext,
3− pkgconfig, kernel, file, libXi}:
4−
5−stdenv.mkDerivation rec {
6− name = "tvtime-1.0.2";
7−
8− src = fetchurl {
9− url = "mirror://sourceforge/tvtime/${name}.tar.gz";
10− sha256 = "aef2a4bab084df252428d66cabec61b4c63fab32cdfc0cc6599d82efd77f0523";
11− };
12−
13− # many of these patches were copied from gentoo's portage team (maybe all?!)
14− patchPhase = ''
15− # to avoid this error message:
16− # ...-glibc-2.12.2/include/xlocale.h:43:20: note: previous declaration of 'locale_t' was here
17− patch -p1 < ${ ./tvtime-1.0.2-glibc-2.10.patch}
18−
19− # to avoid this error message:
20− # videodev2.h:19:46: fatal error: linux/compiler.h: No such file or directory
21− sed -i -e "s/videodev.h/linux\/videodev.h/" src/videoinput.c
22− sed -i -e "s/videodev2.h/linux\/videodev2.h/" src/videoinput.c
23−
24− # to avoid this error message:
25− # 1 out of 2 hunks FAILED -- saving rejects to file src/Makefile.am.rej
26− patch -p1 < ${ ./tvtime-1.0.2-libsupc++.patch }
27−
28− # to avoid this error message:
29− # ../plugins/greedyh.asm:21:6: error: extra qualification 'DScalerFilterGreedyH::' on member 'filterDScaler_SSE'
30− patch -p1 < ${ ./tvtime-1.0.2-gcc41.patch }
31−
32− # compiles without this patch
33− patch -p1 < ${ ./tvtime-pic.patch }
34−
35− # compiles without this patch
36− patch -p1 < ${ ./tvtime-1.0.2-autotools.patch }
37−
38− # compiles without this patch
39− patch -p1 < ${ ./tvtime-1.0.2-xinerama.patch }
40−
41− # libpng 1.5 patch (gentoo)
42− patch -p1 < ${ ./tvtime-libpng-1.5.patch }
43−
44− # /usr/bin/file - ltmain.sh configure aclocal.m4
45− sed -i -e "s%/usr/bin/file%/nix/store/f92pyxmbi274q7fzrfnlc2xiy6d3cyi1-file-5.04/bi/file%g" ltmain.sh
46− sed -i -e "s%/usr/bin/file%/nix/store/f92pyxmbi274q7fzrfnlc2xiy6d3cyi1-file-5.04/bin/file%g" configure
47− sed -i -e "s%/usr/bin/file%/nix/store/f92pyxmbi274q7fzrfnlc2xiy6d3cyi1-file-5.04/bin/file%g" aclocal.m4
48− '';
49−
50− configureFlags = ''
51− --x-includes=${xorg.libX11}/include
52− --x-libraries=${xorg.libX11}/lib
53− '';
54−
55− buildInputs = [ libX11 libXtst libSM libXext libXv libXxf86vm libXau libXdmcp zlib libpng libxml2 freetype libICE intltool libXinerama gettext pkgconfig file libXi ];
56−
57− meta = {
58− description = "High quality television application for use with video capture cards";
59− homepage = lhttp://tvtime.sourceforge.net/;
60− license = stdenv.lib.licenses.gpl2;
61− maintainers = with stdenv.lib.maintainers; [qknight];
62− platforms = with stdenv.lib.platforms; linux;
63− broken = true;
64− };
65−}
pkgs/applications/video/tvtime/tvtime-1.0.2-autotools.patchdeleted−73
@@ -1,73 +0,0 @@
1−Index: tvtime-1.0.2/src/Makefile.am
2−===================================================================
3−--- tvtime-1.0.2.orig/src/Makefile.am
4−+++ tvtime-1.0.2/src/Makefile.am
5−@@ -19,9 +19,6 @@ pkgsysconfdir = $(sysconfdir)/@PACKAGE@
6− tmpdir = /tmp
7− localedir = $(datadir)/locale
8−
9−-TTF_CFLAGS = `$(FREETYPE_CONFIG) --cflags`
10−-TTF_LIBS = `$(FREETYPE_CONFIG) --libs`
11−-
12− # Set the following if you want to specify an additional font directory
13− # FONT_CFLAGS = -DFONTDIR='/usr/share/fonts/truetype/freefont/'
14−
15−@@ -76,20 +73,20 @@ tvtime_SOURCES = $(COMMON_SRCS) $(OUTPUT
16− tvtime_CFLAGS = $(TTF_CFLAGS) $(PNG_CFLAGS) $(OPT_CFLAGS) \
17− $(PLUGIN_CFLAGS) $(X11_CFLAGS) $(XML2_FLAG) \
18− $(FONT_CFLAGS) $(AM_CFLAGS)
19−-tvtime_LDFLAGS = $(TTF_LIBS) $(ZLIB_LIBS) $(PNG_LIBS) \
20−+tvtime_LDADD = $(TTF_LIBS) $(ZLIB_LIBS) $(PNG_LIBS) \
21− $(X11_LIBS) $(XML2_LIBS) -lm -lsupc++
22−
23− tvtime_command_SOURCES = utils.h utils.c tvtimeconf.h tvtimeconf.c \
24− tvtime-command.c
25− tvtime_command_CFLAGS = $(OPT_CFLAGS) $(XML2_FLAG) $(AM_CFLAGS)
26−-tvtime_command_LDFLAGS = $(ZLIB_LIBS) $(XML2_LIBS)
27−+tvtime_command_LDADD = $(ZLIB_LIBS) $(XML2_LIBS)
28− tvtime_configure_SOURCES = utils.h utils.c tvtimeconf.h tvtimeconf.c \
29− tvtime-configure.c
30− tvtime_configure_CFLAGS = $(OPT_CFLAGS) $(XML2_FLAG) $(AM_CFLAGS)
31−-tvtime_configure_LDFLAGS = $(ZLIB_LIBS) $(XML2_LIBS)
32−+tvtime_configure_LDADD = $(ZLIB_LIBS) $(XML2_LIBS)
33− tvtime_scanner_SOURCES = utils.h utils.c videoinput.h videoinput.c \
34− tvtimeconf.h tvtimeconf.c station.h station.c tvtime-scanner.c \
35− mixer.h mixer.c
36− tvtime_scanner_CFLAGS = $(OPT_CFLAGS) $(XML2_FLAG) $(AM_CFLAGS)
37−-tvtime_scanner_LDFLAGS = $(ZLIB_LIBS) $(XML2_LIBS)
38−+tvtime_scanner_LDADD = $(ZLIB_LIBS) $(XML2_LIBS)
39−
40−Index: tvtime-1.0.2/configure.ac
41−===================================================================
42−--- tvtime-1.0.2.orig/configure.ac
43−+++ tvtime-1.0.2/configure.ac
44−@@ -10,6 +10,7 @@ if test x"$host_alias" = x""; then host_
45−
46− # Check for compilers.
47− AC_PROG_CC
48−+AM_PROG_CC_C_O
49− AC_CHECK_PROG(found_cc, "$CC", yes, no)
50− test "x$found_cc" = "xyes" || exit 1
51−
52−@@ -17,9 +18,6 @@ AC_PROG_CXX
53− AC_CHECK_PROG(found_cxx, "$CXX", yes, no)
54− test "x$found_cxx" = "xyes" || exit 1
55−
56−-# Check for libtool.
57−-AC_PROG_LIBTOOL
58−-
59− # Checks for header files.
60− AC_HEADER_STDC
61− AC_CHECK_HEADERS([ctype.h dirent.h errno.h fcntl.h getopt.h langinfo.h math.h netinet/in.h pwd.h signal.h stdint.h stdio.h stdlib.h string.h sys/ioctl.h sys/mman.h sys/resource.h sys/stat.h sys/time.h sys/wait.h sys/types.h unistd.h wordexp.h locale.h])
62−@@ -65,10 +63,7 @@ dnl ------------------------------------
63− dnl freetype
64− dnl ---------------------------------------------
65− dnl Test for freetype
66−-AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)
67−-if test "$FREETYPE_CONFIG" = "no" ; then
68−- AC_MSG_ERROR(freetype2 needed and freetype-config not found)
69−-fi
70−+PKG_CHECK_MODULES([TTF], [freetype2])
71−
72− dnl ---------------------------------------------
73− dnl libxml2
pkgs/applications/video/tvtime/tvtime-1.0.2-gcc41.patchdeleted−57
@@ -1,57 +0,0 @@
1−diff -Naur tvtime-1.0.1/plugins/greedyh.asm tvtime-1.0.1-gcc41/plugins/greedyh.asm
2−--- tvtime-1.0.1/plugins/greedyh.asm 2005-08-14 18:16:43.000000000 +0200
3−+++ tvtime-1.0.1-gcc41/plugins/greedyh.asm 2005-11-28 17:53:09.210774544 +0100
4−@@ -18,7 +18,7 @@
5−
6− #include "x86-64_macros.inc"
7−
8−-void DScalerFilterGreedyH::FUNCT_NAME(TDeinterlaceInfo* pInfo)
9−+void FUNCT_NAME(TDeinterlaceInfo* pInfo)
10− {
11− int64_t i;
12− bool InfoIsOdd = (pInfo->PictureHistory[0]->Flags & PICTURE_INTERLACED_ODD) ? 1 : 0;
13−diff -Naur tvtime-1.0.1/plugins/tomsmocomp/TomsMoCompAll2.inc tvtime-1.0.1-gcc41/plugins/tomsmocomp/TomsMoCompAll2.inc
14−--- tvtime-1.0.1/plugins/tomsmocomp/TomsMoCompAll2.inc 2004-10-20 17:31:05.000000000 +0200
15−+++ tvtime-1.0.1-gcc41/plugins/tomsmocomp/TomsMoCompAll2.inc 2005-11-28 17:53:33.251119856 +0100
16−@@ -5,9 +5,9 @@
17− #endif
18−
19− #ifdef USE_STRANGE_BOB
20−-#define SEARCH_EFFORT_FUNC(n) DScalerFilterTomsMoComp::SEFUNC(n##_SB)
21−+#define SEARCH_EFFORT_FUNC(n) SEFUNC(n##_SB)
22− #else
23−-#define SEARCH_EFFORT_FUNC(n) DScalerFilterTomsMoComp::SEFUNC(n)
24−+#define SEARCH_EFFORT_FUNC(n) SEFUNC(n)
25− #endif
26−
27− int SEARCH_EFFORT_FUNC(0) // we don't try at all ;-)
28−diff -Naur tvtime-1.0.1/plugins/tomsmocomp.cpp tvtime-1.0.1-gcc41/plugins/tomsmocomp.cpp
29−--- tvtime-1.0.1/plugins/tomsmocomp.cpp 2004-10-20 19:38:04.000000000 +0200
30−+++ tvtime-1.0.1-gcc41/plugins/tomsmocomp.cpp 2005-11-28 17:52:53.862107896 +0100
31−@@ -31,7 +31,7 @@
32−
33− #define IS_MMX
34− #define SSE_TYPE MMX
35−-#define FUNCT_NAME DScalerFilterTomsMoComp::filterDScaler_MMX
36−+#define FUNCT_NAME filterDScaler_MMX
37− #include "tomsmocomp/TomsMoCompAll.inc"
38− #undef IS_MMX
39− #undef SSE_TYPE
40−@@ -39,7 +39,7 @@
41−
42− #define IS_3DNOW
43− #define SSE_TYPE 3DNOW
44−-#define FUNCT_NAME DScalerFilterTomsMoComp::filterDScaler_3DNOW
45−+#define FUNCT_NAME filterDScaler_3DNOW
46− #include "tomsmocomp/TomsMoCompAll.inc"
47− #undef IS_3DNOW
48− #undef SSE_TYPE
49−@@ -47,7 +47,7 @@
50−
51− #define IS_SSE
52− #define SSE_TYPE SSE
53−-#define FUNCT_NAME DScalerFilterTomsMoComp::filterDScaler_SSE
54−+#define FUNCT_NAME filterDScaler_SSE
55− #include "tomsmocomp/TomsMoCompAll.inc"
56− #undef IS_SSE
57− #undef SSE_TYPE
pkgs/applications/video/tvtime/tvtime-1.0.2-glibc-2.10.patchdeleted−24
@@ -1,24 +0,0 @@
1−diff -Naur tvtime-1.0.2.org/src/xmltv.c tvtime-1.0.2/src/xmltv.c
2−--- tvtime-1.0.2.org/src/xmltv.c 2009-07-02 21:48:49.426191088 +0200
3−+++ tvtime-1.0.2/src/xmltv.c 2009-07-02 21:50:20.842066085 +0200
4−@@ -118,9 +118,9 @@
5− typedef struct {
6− const char *code;
7− const char *name;
8−-} locale_t;
9−+} tvtime_locale_t;
10−
11−-static locale_t locale_table[] = {
12−+static tvtime_locale_t locale_table[] = {
13− {"AA", "Afar"}, {"AB", "Abkhazian"}, {"AF", "Afrikaans"},
14− {"AM", "Amharic"}, {"AR", "Arabic"}, {"AS", "Assamese"},
15− {"AY", "Aymara"}, {"AZ", "Azerbaijani"}, {"BA", "Bashkir"},
16−@@ -168,7 +168,7 @@
17− {"XH", "Xhosa"}, {"YO", "Yoruba"}, {"ZH", "Chinese"},
18− {"ZU", "Zulu"} };
19−
20−-const int num_locales = sizeof( locale_table ) / sizeof( locale_t );
21−+const int num_locales = sizeof( locale_table ) / sizeof( tvtime_locale_t );
22−
23− /**
24− * Timezone parsing code based loosely on the algorithm in
pkgs/applications/video/tvtime/tvtime-1.0.2-libsupc++.patchdeleted−16
@@ -1,16 +0,0 @@
1−Link to libsupc++ instead of bringing in libstdc++ just because tomsocomp
2−is written in C++. It does not use STL so it needs not the whole standard
3−library.
4−Index: tvtime-1.0.2/src/Makefile.am
5−===================================================================
6−--- tvtime-1.0.2.orig/src/Makefile.am
7−+++ tvtime-1.0.2/src/Makefile.am
8−@@ -77,7 +77,7 @@ tvtime_CFLAGS = $(TTF_CFLAGS) $(PNG_CFLA
9− $(PLUGIN_CFLAGS) $(X11_CFLAGS) $(XML2_FLAG) \
10− $(FONT_CFLAGS) $(AM_CFLAGS)
11− tvtime_LDFLAGS = $(TTF_LIBS) $(ZLIB_LIBS) $(PNG_LIBS) \
12−- $(X11_LIBS) $(XML2_LIBS) -lm -lstdc++
13−+ $(X11_LIBS) $(XML2_LIBS) -lm -lsupc++
14−
15− tvtime_command_SOURCES = utils.h utils.c tvtimeconf.h tvtimeconf.c \
16− tvtime-command.c
pkgs/applications/video/tvtime/tvtime-1.0.2-xinerama.patchdeleted−32
@@ -1,32 +0,0 @@
1−Index: tvtime-1.0.2/configure.ac
2−===================================================================
3−--- tvtime-1.0.2.orig/configure.ac
4−+++ tvtime-1.0.2/configure.ac
5−@@ -99,6 +99,8 @@ dnl ------------------------------------
6− dnl check for X11, Xv and XF86VidModeExtension
7− dnl ---------------------------------------------
8− AC_PATH_XTRA
9−+AC_ARG_WITH([xinerama],
10−+ [AS_HELP_STRING([--without-xinerama], [Disable Xinerama extension support (default: check)])])
11− if test x"$no_x" != x"yes"; then
12− dnl check for Xshm
13− AC_CHECK_LIB([Xext],[XShmCreateImage],
14−@@ -112,11 +114,13 @@ if test x"$no_x" != x"yes"; then
15− X11_LIBS="$X11_LIBS -lXv"],,
16− [$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext])
17−
18−- dnl check for Xinerama
19−- AC_CHECK_LIB([Xinerama],[XineramaQueryScreens],
20−- [AC_DEFINE([HAVE_XINERAMA],,[Xinerama support])
21−- X11_LIBS="$X11_LIBS -lXinerama"],,
22−- [$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext])
23−+ if test "x$with_xinerama" != "xno"; then
24−+ dnl check for Xinerama
25−+ AC_CHECK_LIB([Xinerama],[XineramaQueryScreens],
26−+ [AC_DEFINE([HAVE_XINERAMA],,[Xinerama support])
27−+ X11_LIBS="$X11_LIBS -lXinerama"],,
28−+ [$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext])
29−+ fi
30−
31− dnl check for XTest
32− AC_CHECK_LIB([Xtst],[XTestFakeKeyEvent],
pkgs/applications/video/tvtime/tvtime-libpng-1.5.patchdeleted−14
@@ -1,14 +0,0 @@
1−Include zlib.h which is no longer implicitly included with libpng-1.5
2−Bug 369663
3−
4−diff -ru tvtime-111b28cca42d.orig/src/pngoutput.c tvtime-111b28cca42d/src/pngoutput.c
5−--- tvtime-111b28cca42d.orig/src/pngoutput.c 2011-02-01 02:35:26.000000000 +0100
6−+++ tvtime-111b28cca42d/src/pngoutput.c 2011-06-02 13:36:55.965999463 +0200
7−@@ -18,6 +18,7 @@
8−
9− #include <stdio.h>
10− #include <stdlib.h>
11−+#include <zlib.h>
12− #include <png.h>
13− #include "pngoutput.h"
14−
pkgs/applications/video/tvtime/tvtime-pic.patchdeleted−11
@@ -1,11 +0,0 @@
1−--- tvtime/src/cpu_accel.c
2−+++ tvtime/src/cpu_accel.c
3−@@ -35,7 +35,7 @@
4− int AMD;
5− uint32_t caps;
6−
7−-#ifndef PIC
8−+#if !defined(__PIC__) || defined(__x86_64__)
9− #define cpuid(op,eax,ebx,ecx,edx) \
10− __asm__ ("cpuid" \
11− : "=a" (eax), \
pkgs/top-level/all-packages.nix−4
@@ -12689,10 +12689,6 @@ let
1268912689
1269012690 mythtv = callPackage ../applications/video/mythtv { };
1269112691
12692− tvtime = callPackage ../applications/video/tvtime {
12693− kernel = linux;
12694− };
12695−
1269612692 nano = callPackage ../applications/editors/nano { };
1269712693
1269812694 nanoblogger = callPackage ../applications/misc/nanoblogger { };