From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 94FF5138350 for ; Sat, 18 Apr 2020 18:39:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D2DEE07A7; Sat, 18 Apr 2020 18:39:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 42117E07A7 for ; Sat, 18 Apr 2020 18:39:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8045D34F06A for ; Sat, 18 Apr 2020 18:39:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 145551DF for ; Sat, 18 Apr 2020 18:39:23 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1587152788.1a5488b13d96ebe5defbfcc0c518702c542d05dd.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: media-video/kikoplay/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-video/kikoplay/kikoplay-9999.ebuild X-VCS-Directories: media-video/kikoplay/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 1a5488b13d96ebe5defbfcc0c518702c542d05dd X-VCS-Branch: master Date: Sat, 18 Apr 2020 18:39:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8b6417ce-f2c1-44b4-9bf6-2ac679f683db X-Archives-Hash: 0c848daadf67023becf6a059b0e3d8a6 commit: 1a5488b13d96ebe5defbfcc0c518702c542d05dd Author: Huang Rui gmail com> AuthorDate: Fri Apr 17 19:42:56 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Fri Apr 17 19:46:28 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1a5488b1 media-video/kikoplay: add live build User could get latest software now To install this package, lua 5.3 shoud unmasked See also: https://bugs.gentoo.org/671248 https://bugs.gentoo.org/657722 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Huang Rui gmail.com> media-video/kikoplay/kikoplay-9999.ebuild | 77 +++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/media-video/kikoplay/kikoplay-9999.ebuild b/media-video/kikoplay/kikoplay-9999.ebuild new file mode 100644 index 0000000..0823479 --- /dev/null +++ b/media-video/kikoplay/kikoplay-9999.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +GIT_PN="KikoPlay" + +inherit qmake-utils xdg + +DESCRIPTION="KikoPlay is a full-featured danmu player" +HOMEPAGE=" + https://kikoplay.fun + https://github.com/Protostars/KikoPlay +" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Protostars/${GIT_PN}.git" +else + SRC_URI="https://github.com/Protostars/${GIT_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" + S="${WORKDIR}/${GIT_PN}-${PV}" +fi + +LICENSE="GPL-3" +SLOT="0" + +RDEPEND=" + dev-lang/lua:5.3 + dev-libs/qhttpengine:5 + dev-qt/qtconcurrent:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtsql:5 + dev-qt/qtwidgets:5 + media-video/mpv[libmpv,-luajit] + net-misc/aria2 +" + +DEPEND=" + ${RDEPEND} +" + +BDEPEND=" + media-gfx/imagemagick + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.6.0-desktop.patch # Add a desktop file + "${FILESDIR}"/${PN}-0.6.0-home.patch # Add a desktop file +) + +src_prepare() { + default + # Fix lua link problem, link to lua5.3 to fix bug + sed -i "s/-llua/-llua5.3/" KikoPlay.pro || die "Could not fix lua link" + echo "target.path += /usr/bin" >> KikoPlay.pro || die "Could not fix install path" + echo "INSTALLS += target icons desktop" >> KikoPlay.pro || die "Could not fix install target" + echo "unix:icons.path = /usr/share/pixmaps" >> KikoPlay.pro || die "Could not fix install icon PATH" + echo "unix:desktop.path = /usr/share/applications" >> KikoPlay.pro || die "Could not fix install desktop PATH" + echo "unix:icons.files = kikoplay.png kikoplay.xpm" >> KikoPlay.pro || die "Could not fix install desktop PATH" + echo "unix:desktop.files = kikoplay.desktop" >> KikoPlay.pro || die "Could not fix install desktop PATH" + echo "DEFINES += CONFIG_HOME_DATA" >> KikoPlay.pro || die "Could not set defines" + convert kikoplay.ico kikoplay.png || die "Could not create PNG icon" + convert kikoplay.ico kikoplay.xpm || die "Could not create XPM icon" +} + +src_configure() { + eqmake5 PREFIX="${D}"/usr +} + +src_install() { + # Can't use default, set INSTALL_ROOT + emake INSTALL_ROOT="${D}" install +}