diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-tv/linuxtv-dvb-apps | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-tv/linuxtv-dvb-apps')
5 files changed, 152 insertions, 0 deletions
diff --git a/media-tv/linuxtv-dvb-apps/Manifest b/media-tv/linuxtv-dvb-apps/Manifest new file mode 100644 index 000000000000..9fbc2ee62f5c --- /dev/null +++ b/media-tv/linuxtv-dvb-apps/Manifest @@ -0,0 +1 @@ +DIST linuxtv-dvb-apps-1.1.1.20100223.tar.bz2 429129 SHA256 8a657a1479de665a6d95d8f5585ffd0228232e1a030b88435d4c40d85e983461 SHA512 0950197e2a199b1ab4392fa2e893d9b537d2b8fed05b24d8b81a2abf11ed2373dcb299a51e217c6508ea68b81691728b120328e4080de68519449fc5fd506161 WHIRLPOOL 5129c13fbc1cc65c9a5177d29de87563c22f4a8c78bbe4534e65a9c46b3683344c5a296cd157379c7af9500a9079daea8418b927a65ed1596d24d6300441ed20 diff --git a/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20100223-alevt.patch b/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20100223-alevt.patch new file mode 100644 index 000000000000..d19ac7e4878f --- /dev/null +++ b/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20100223-alevt.patch @@ -0,0 +1,37 @@ +--- linuxtv-dvb-apps-1.1.1.20100223/util/alevt/exp-gfx.c ++++ linuxtv-dvb-apps-1.1.1.20100223/util/alevt/exp-gfx.c +@@ -137,6 +137,7 @@ + + #ifdef WITH_PNG + ++#include <zlib.h> + #include <png.h> + static int png_open(struct export *e); + static int png_option(struct export *e, int opt, char *arg); +--- linuxtv-dvb-apps-1.1.1.20100223/util/alevt/Makefile ++++ linuxtv-dvb-apps-1.1.1.20100223/util/alevt/Makefile +@@ -25,13 +25,13 @@ + all: alevt alevt-date alevt-cap alevt.1 alevt-date.1 alevt-cap.1 + + alevt: $(OBJS) +- $(CC) $(OPT) $(OBJS) -o alevt -L$(PREFIX)/lib -L$(PREFIX)/lib64 -lX11 $(EXPLIBS) ++ $(CC) $(OPT) $(OBJS) -o alevt -L$(PREFIX)/lib -L$(PREFIX)/lib64 -lX11 $(EXPLIBS) $(LDFLAGS) + + alevt-date: $(TOBJS) +- $(CC) $(OPT) $(TOBJS) -o alevt-date $(ZVBILIB) ++ $(CC) $(OPT) $(TOBJS) -o alevt-date $(ZVBILIB) $(LDFLAGS) + + alevt-cap: $(COBJS) +- $(CC) $(OPT) $(COBJS) -o alevt-cap $(EXPLIBS) ++ $(CC) $(OPT) $(COBJS) -o alevt-cap $(EXPLIBS) $(LDFLAGS) + + font.o: font1.xbm font2.xbm font3.xbm font4.xbm + fontsize.h: font1.xbm font2.xbm font3.xbm font4.xbm +@@ -73,7 +73,6 @@ + install -m 0644 alevt.1 $(DESTDIR)$(PREFIX)/share/man/man1 + install -m 0644 alevt-date.1 $(DESTDIR)$(PREFIX)/share/man/man1 + install -m 0644 alevt-cap.1 $(DESTDIR)$(PREFIX)/share/man/man1 +- install -m 0644 alevt.png $(DESTDIR)$(PREFIX)/share/pixmaps + install -m 0644 alevt.desktop $(DESTDIR)$(PREFIX)/share/applications + + uninstall: clean diff --git a/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20100223-ldflags.patch b/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20100223-ldflags.patch new file mode 100644 index 000000000000..063b4b6c479d --- /dev/null +++ b/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20100223-ldflags.patch @@ -0,0 +1,20 @@ +--- linuxtv-dvb-apps-1.1.1.20100223/Make.rules ++++ linuxtv-dvb-apps-1.1.1.20100223/Make.rules +@@ -46,7 +46,7 @@ + %: %.c + $(CC) $(CPPFLAGS) $(CFLAGS) -MMD $(LDFLAGS) -o $@ $< $(filter-out %.h %.c,$^) $(LOADLIBES) $(LDLIBS) + %.so: +- $(CC) -shared -o $@ $^ ++ $(CC) $(LDFLAGS) -Wl,-soname -Wl,$@ -shared -o $@ $^ + %.a: + $(AR) rcs $@ $^ + clean:: +@@ -76,7 +76,7 @@ + @$(CC) $(CPPFLAGS) $(CFLAGS) -MMD $(LDFLAGS) -o $@ $< $(filter-out %.h %.c,$^) $(LOADLIBES) $(LDLIBS) + %.so: + @echo CC $@ +- @$(CC) -shared -o $@ $^ ++ @$(CC) $(LDFLAGS) -Wl,-soname -Wl,$@ -shared -o $@ $^ + %.a: + @echo AR $@ + @$(AR) rcs $@ $^ diff --git a/media-tv/linuxtv-dvb-apps/linuxtv-dvb-apps-1.1.1.20100223-r1.ebuild b/media-tv/linuxtv-dvb-apps/linuxtv-dvb-apps-1.1.1.20100223-r1.ebuild new file mode 100644 index 000000000000..8b07e4ad4400 --- /dev/null +++ b/media-tv/linuxtv-dvb-apps/linuxtv-dvb-apps-1.1.1.20100223-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib toolchain-funcs vcs-snapshot + +HOMEPAGE="http://www.linuxtv.org/" +DESCRIPTION="small utils for DVB to scan, zap, view signal strength, ..." +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="alevt test usb" + +RDEPEND="alevt? ( !media-video/alevt + media-libs/libpng + media-libs/zvbi[v4l] + sys-libs/zlib + x11-libs/libX11 ) + usb? ( virtual/libusb:0 ) + !dev-db/xbase" +DEPEND="${RDEPEND} + dev-lang/perl + virtual/linuxtv-dvb-headers" +# !dev-db/xbase (bug #208596) + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-ldflags.patch \ + "${FILESDIR}"/${P}-alevt.patch + + # do not compile test-progs, incompartible with videodev2.h + sed -e '/-C test/d' \ + -i Makefile || die + + # remove copy of header-files + rm -rf "${S}"/include || die +} + +src_compile() { + emake V=1 CC=$(tc-getCC) $(usex usb "ttusb_dec_reset=1" "") + if use alevt ; then + emake -C util/alevt CC=$(tc-getCC) OPT="${CFLAGS}" + fi +} + +src_install() { + insinto /usr/bin + emake V=1 prefix="${EROOT}usr" libdir="${EROOT}usr/$(get_libdir)" \ + $(usex usb "ttusb_dec_reset=1" "") \ + DESTDIR="${D}" INSTDIR="${T}" install + if use alevt ; then + dodir /usr/share/applications + dodir /usr/share/man/man1 + emake -C util/alevt DESTDIR="${D}" install + fi + + # rename scan to scan-dvb + mv "${D}"/usr/bin/scan{,-dvb} || die + + # install zap-files + local dir="" + for dir in dvb-{s,c,t} atsc ; do + insinto /usr/share/dvb/zap/${dir} + doins "${S}"/util/szap/channels-conf/${dir}/* + done + + # install remote-key files + insinto /usr/share/dvb/av7110_loadkeys + doins util/av7110_loadkeys/*.rc* + + # install Documentation + dodoc README + newdoc util/scan/README README.scan-dvb + newdoc util/szap/README README.zap + newdoc util/av7110_loadkeys/README README.av7110_loadkeys + + use usb && newdoc util/ttusb_dec_reset/README README.ttusb_dec_reset +} + +pkg_postinst() { + elog "/usr/bin/scan has been installed as scan-dvb." +} diff --git a/media-tv/linuxtv-dvb-apps/metadata.xml b/media-tv/linuxtv-dvb-apps/metadata.xml new file mode 100644 index 000000000000..cd4366c20fb3 --- /dev/null +++ b/media-tv/linuxtv-dvb-apps/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>media-tv</herd> +<use> + <flag name="alevt">Build videotext decoder</flag> +</use> +</pkgmetadata> |