Skip to content

Instantly share code, notes, and snippets.

@pluser
Created March 16, 2016 14:25
Show Gist options
  • Save pluser/b92fcf03c596ea8dceb0 to your computer and use it in GitHub Desktop.
Save pluser/b92fcf03c596ea8dceb0 to your computer and use it in GitHub Desktop.
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit java-pkg-2
DESCRIPTION="A DLNA-compliant UPnP Media Server"
HOMEPAGE="http://www.universalmediaserver.com/"
if [[ ${PV} = "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/universalmediaserver/universalmediaserver.git"
SRC_URI=""
else
SRC_URI="https://github.com/UniversalMediaServer/UniversalMediaServer/archive/${PV}-Java8.tar.gz -> ${PF}.tar.gz"
fi
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/jdk
dev-java/maven-bin"
RDEPEND="virtual/jre"
pkg_setup() {
java-pkg-2_pkg_setup
}
src_unpack() {
if [[ -v _GIT_R3 ]]; then
git-r3_src_unpack
else
unpack ${A}
fi
}
src_prepare() {
eapply_user
java-pkg-2_src_prepare
mvn external:install || die
}
src_compile() {
mvn package || die
}
src_install() {
tar xvzf UMS-linux-generic-*.tar.gz --directory="${D}" || die
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment