media-gfx/synfigstudio: add v1.5.0

Package-Manager: Portage-3.0.20, Repoman-3.0.3
This commit is contained in:
2021-09-16 17:38:09 +03:00
parent 6d6fba1a9f
commit 1b076f057b
3 changed files with 92 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST synfigstudio-1.4.2.tar.gz 6742540 BLAKE2B 98bd4f97129a621748feb9b64068b95302a1ad6dd13e28eb2de8a6278d9b4ced7b1614f95d5840c3c5792456d5b9d823c4e0a135fe5298fe026ec2cda1632f7e SHA512 cfe17ad68f45305336030958c7facef63e856db81dbf5ca7f1151e8597288a43a137a66ecbbc181c2e087d9c386d01c887ba0fcd37827e72299f94956df5cf38
DIST synfigstudio-1.5.0.tar.gz 11633997 BLAKE2B fbdba1f310cabe105267a3aa90b94e0be76e36a238246f18e1e6e396e9eaefd79b7ac3dbe2075caddbb4c319e8a5e66850f1139925a61962431c230ab25e9e99 SHA512 a3beecdfae5508c6ccf0aa9ec44d817264266a5bb4b7dd580ade53c613658d34e5edc860c17ba5a2d7aa5c3c91a30bb8550b87623ccaad53a4b584cc93852c40

View File

@@ -0,0 +1,23 @@
Keep sed from mangling our CFLAGS
especially -frecord-gcc-flags, which was half removed because it contains -g
--- a/m4/subs.m4
+++ b/m4/subs.m4
@@ -78,13 +78,13 @@
case "$debug" in
yes)
debug_flags="-D_DEBUG -g -O0"
- CXXFLAGS="`echo $CXXFLAGS | sed s:-O.::` $debug_flags -fno-inline"
- CFLAGS="`echo $CFLAGS | sed s:-O.::` $debug_flags"
+ CXXFLAGS="${CXXFLAGS} ${debug_flags} -fno-inline"
+ CFLAGS="${CFLAGS} ${debug_flags}"
;;
no|*)
debug_flags="-DNDEBUG"
- CXXFLAGS="`echo $CXXFLAGS | sed 's:-g[[a-z-]]*\s::g' | sed 's:-g[[a-z-]]*$::'` $debug_flags"
- CFLAGS="`echo $CFLAGS | sed 's:-g[[a-z-]]*\s::g' | sed 's:-g[[a-z-]]*$::'` $debug_flags"
+ CXXFLAGS="${CXXFLAGS} ${debug_flags}"
+ CFLAGS="${CFLAGS} ${debug_flags}"
;;
esac

View File

@@ -0,0 +1,68 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Original ebuild By eroen <eroen-overlay@occam.eroen.eu>, 2018
# Modified by <ceamac.paragon@gmail.com>, 2020
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
EAPI=7
inherit autotools eutils multilib flag-o-matic xdg-utils
DESCRIPTION="Vector animation studio"
HOMEPAGE="https://www.synfig.org"
SRC_URI="https://github.com/synfig/synfig/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2+ CC-BY-3.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
media-gfx/synfig
dev-libs/libsigc++:2
dev-cpp/gtkmm:3.0
dev-cpp/libxmlpp:2.6
sys-devel/gettext
"
DEPEND="${RDEPEND}
~dev-cpp/ETL-${PV}
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/${PN}-1.4.1-fix-cflags.patch
)
S="${WORKDIR}/synfig-${PV}/synfig-studio"
src_prepare() {
default
eautoreconf
}
src_install() {
emake DESTDIR="${D}" install
dodoc NEWS README TODO AUTHORS ChangeLog.old
mv "${ED}"/usr/share/appdata "${ED}"/usr/share/metainfo || die
rm -r "${ED}"/usr/share/mime || die
find "${ED}" -name '*.la' -delete || die
}
pkg_postinst()
{
xdg_desktop_database_update
xdg_icon_cache_update
xdg_mimeinfo_database_update
}
pkg_postrm()
{
xdg_desktop_database_update
xdg_icon_cache_update
xdg_mimeinfo_database_update
}