/[gentoo-x86]/net-misc/mediatomb/mediatomb-0.12.2_pre20141212.ebuild
Gentoo

Contents of /net-misc/mediatomb/mediatomb-0.12.2_pre20141212.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sun Jan 18 18:54:09 2015 UTC (5 years ago) by thev00d00
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump, fix metadata #534052, drop ppc

(Portage version: 2.2.15/cvs/Linux x86_64, unsigned Manifest commit)

1 thev00d00 1.1 # Copyright 1999-2014 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 thev00d00 1.3 # $Header: /var/cvsroot/gentoo-x86/net-misc/mediatomb/mediatomb-0.12.2_pre20141212.ebuild,v 1.2 2014/12/12 14:20:09 thev00d00 Exp $
4 thev00d00 1.1
5     EAPI=5
6     inherit autotools eutils linux-info systemd user vcs-snapshot
7    
8     DESCRIPTION="MediaTomb is an open source UPnP MediaServer"
9     HOMEPAGE="http://www.mediatomb.cc/"
10     SRC_URI="https://github.com/v00d00/${PN}/archive/${P}.tar.gz"
11    
12     LICENSE="GPL-2"
13     SLOT="0"
14     KEYWORDS="~amd64 ~arm ~ppc ~x86"
15    
16     IUSE="curl debug +exif +ffmpeg flac id3tag +inotify +javascript lastfm
17     +magic +mp4 mysql +sqlite +taglib thumbnail +zlib"
18     REQUIRED_USE="
19     || ( mysql sqlite )
20     taglib? ( !id3tag )
21     id3tag? ( !taglib )
22     thumbnail? ( ffmpeg )
23     "
24    
25     DEPEND="mysql? ( virtual/mysql )
26     dev-libs/expat
27     id3tag? ( media-libs/id3lib )
28     javascript? ( >=dev-lang/spidermonkey-1.8.5:0 )
29     taglib? ( media-libs/taglib )
30     sqlite? ( >=dev-db/sqlite-3 )
31     lastfm? ( >=media-libs/lastfmlib-0.4 )
32     exif? ( media-libs/libexif )
33     mp4? ( >=media-libs/libmp4v2-1.9.1_p479:0 )
34 thev00d00 1.2 ffmpeg? ( || ( >=media-video/libav-10 >=media-video/ffmpeg-2.2 ) )
35 thev00d00 1.1 flac? ( media-libs/flac )
36     thumbnail? ( media-video/ffmpegthumbnailer[jpeg] )
37     curl? ( net-misc/curl net-misc/youtube-dl )
38     magic? ( sys-apps/file )
39     sys-apps/util-linux
40     zlib? ( sys-libs/zlib )
41     virtual/libiconv
42     "
43     RDEPEND="${DEPEND}"
44    
45     CONFIG_CHECK="~INOTIFY_USER"
46    
47     pkg_setup() {
48     use inotify && linux-info_pkg_setup
49    
50     enewgroup mediatomb
51     enewuser mediatomb -1 -1 /dev/null mediatomb
52     }
53    
54     src_prepare() {
55     # Support spidermonkey-187 #423991 #482392
56     if has_version "~dev-lang/spidermonkey-1.8.7" ; then
57     epatch "${FILESDIR}"/${PN}-0.12.1-mozjs187.patch
58     fi
59    
60     epatch_user
61    
62     eautoreconf
63     }
64    
65     src_configure() {
66     econf \
67     $(use_enable curl) \
68     $(use_enable curl youtube) \
69     $(use_enable debug tombdebug) \
70     $(use_enable exif libexif) \
71     $(use_enable ffmpeg) \
72     $(use_enable flac) \
73     $(use_enable id3tag id3lib) \
74     $(use_enable inotify) \
75     $(use_enable javascript libjs) \
76     $(use_enable lastfm lastfm) \
77     $(use_enable magic libmagic) \
78     $(use_enable mp4 libmp4v2) \
79     $(use_enable mysql) \
80     $(use_enable sqlite sqlite3) \
81     $(use_enable taglib) \
82     $(use_enable thumbnail ffmpegthumbnailer) \
83     --enable-external-transcoding \
84     --enable-protocolinfo-extension
85     }
86    
87     src_install() {
88     default
89    
90     systemd_dounit "${S}"/scripts/systemd/"${PN}".service
91     use mysql && systemd_dounit "${S}"/scripts/systemd/"${PN}"-mysql.service
92    
93     newinitd "${FILESDIR}"/${PN}-0.12.1.initd ${PN}
94     use mysql || sed -i -e "/use mysql/d" "${ED}"/etc/init.d/${PN}
95     newconfd "${FILESDIR}"/${PN}-0.12.0.confd ${PN}
96    
97     insinto /etc/mediatomb
98     newins "${FILESDIR}/${PN}-0.12.0.config" config.xml
99     fperms 0600 /etc/mediatomb/config.xml
100     fowners mediatomb:mediatomb /etc/mediatomb/config.xml
101    
102     keepdir /var/lib/mediatomb
103     fowners mediatomb:mediatomb /var/lib/mediatomb
104     }
105    
106     pkg_postinst() {
107     if use mysql ; then
108     elog "MediaTomb has been built with MySQL support and needs"
109     elog "to be configured before being started."
110     elog "For more information, please consult the MediaTomb"
111     elog "documentation: http://mediatomb.cc/pages/documentation"
112     elog
113     fi
114    
115     elog "To configure MediaTomb edit:"
116     elog "/etc/mediatomb/config.xml"
117     elog
118     elog "The MediaTomb web interface can be reached at (after the service is started):"
119     elog "http://localhost:49152/"
120     }

  ViewVC Help
Powered by ViewVC 1.1.20