diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-video/noad/noad-0.7.3-r1.ebuild | |
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-video/noad/noad-0.7.3-r1.ebuild')
-rw-r--r-- | media-video/noad/noad-0.7.3-r1.ebuild | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/media-video/noad/noad-0.7.3-r1.ebuild b/media-video/noad/noad-0.7.3-r1.ebuild new file mode 100644 index 000000000000..66f79ad5101a --- /dev/null +++ b/media-video/noad/noad-0.7.3-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils toolchain-funcs + +DESCRIPTION="Mark commercial Breaks in VDR records" +HOMEPAGE="http://noad.heliohost.org/" +SRC_URI="http://noad.heliohost.org/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="ffmpeg" + +RDEPEND="media-gfx/imagemagick + media-libs/libmpeg2:= + ffmpeg? ( virtual/ffmpeg ) + !media-plugins/vdr-markad" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + EPATCH_FORCE=yes EPATCH_SUFFIX=diff EPATCH_SOURCE="${FILESDIR}"/patches-${PV%.*}.x epatch + + if has_version '>=media-video/vdr-1.7.15'; then + sed -i -e 's:2001:6419:' -i svdrpc.cpp || die + fi + + sed -i -e '/CXXFLAGS.*O3/d' configure.ac || die #426746 + + sed -i \ + -e "s:-lMagick++:$($(tc-getPKG_CONFIG) --libs-only-l Magick++):" \ + Makefile.am || die #467134 + + # FIXME: --with-tools, markpics will compile but showindex won't! + sed -i \ + -e '/^noinst_PROGRAMS/s:@TOOLSRC@::' \ + -e '/^EXTRA_PROGRAMS/s:showindex::' \ + Makefile.am || die + + # ld: audiotools.o: undefined reference to symbol 'av_free@@LIBAVUTIL_51' + if use ffmpeg; then + sed -i -e 's:-lavcodec:& -lavutil:' configure.ac || die + fi + + eautoreconf +} + +src_configure() { + econf \ + --with-magick \ + --with-mpeginclude=/usr/include/mpeg2dec \ + --with-tools \ + $(usex ffmpeg '--with-ffmpeg --with-ffmpeginclude=/usr/include' '') +} + +src_install() { + dobin noad markpics # showindex + + dodoc README INSTALL + # example scripts are installed as dokumentation + dodoc allnewnoad allnoad allnoadnice clearlogos noadifnew stat2html + + newconfd "${FILESDIR}"/confd_vdraddon.noad vdraddon.noad + + insinto /usr/share/vdr/record + doins "${FILESDIR}"/record-50-noad.sh + + insinto /usr/share/vdr/shutdown + doins "${FILESDIR}"/pre-shutdown-15-noad.sh + + insinto /etc/vdr/reccmds + doins "${FILESDIR}"/reccmds.noad.conf + + exeinto /usr/share/vdr/bin + doexe "${FILESDIR}"/noad-reccmd +} + +pkg_postinst() { + elog + elog "To integrate noad in VDR you should do this:" + elog + elog "start and set Parameter in /etc/conf.d/vdraddon.noad" + elog + elog "Note: You can use here all pararmeters for noad," + elog "please look in the documentation of noad." +} |