mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 00:28:09 -07:00
kde-misc/krename: Fix build with gcc-6
Revision bump adds patch from Arch Linux. Spotted by George Diamantopoulos <georgediam@gmail.com>. Gentoo-bug: 587994 Package-Manager: portage-2.3.0
This commit is contained in:
11
kde-misc/krename/files/krename-4.0.9-gcc6.patch
Normal file
11
kde-misc/krename/files/krename-4.0.9-gcc6.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- krename-4.0.9/src/batchrenamer.cpp.orig 2016-05-07 12:50:29.243165528 +0000
|
||||
+++ krename-4.0.9/src/batchrenamer.cpp 2016-05-07 12:50:52.543081000 +0000
|
||||
@@ -402,7 +402,7 @@
|
||||
break;
|
||||
case eRenameMode_Link:
|
||||
// In case of link delete created file
|
||||
- job = KIO::file_delete( dstUrl, false );
|
||||
+ job = KIO::file_delete( dstUrl, NULL );
|
||||
break;
|
||||
case eRenameMode_Copy: // no undo possible
|
||||
// TODO: Maybe we should delete the created files
|
||||
45
kde-misc/krename/krename-4.0.9-r4.ebuild
Normal file
45
kde-misc/krename/krename-4.0.9-r4.ebuild
Normal file
@@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
KDE_LINGUAS="bs cs de el es fr hu it ja lt nl pl pt ru sl sv tr uk zh_CN"
|
||||
inherit kde4-base
|
||||
|
||||
DESCRIPTION="KRename - a very powerful batch file renamer"
|
||||
HOMEPAGE="http://www.krename.net/"
|
||||
SRC_URI="mirror://sourceforge/krename/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="4"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug exif pdf taglib truetype"
|
||||
|
||||
RDEPEND="
|
||||
exif? ( >=media-gfx/exiv2-0.13:= )
|
||||
pdf? ( >=app-text/podofo-0.8 )
|
||||
taglib? ( >=media-libs/taglib-1.5 )
|
||||
truetype? ( media-libs/freetype:2 )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-freetype-include.patch"
|
||||
"${FILESDIR}/${P}-desktop-file.patch"
|
||||
"${FILESDIR}/${P}-gcc6.patch"
|
||||
)
|
||||
DOCS=( AUTHORS README TODO )
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DWITH_Exiv2=$(usex exif)
|
||||
-DWITH_Taglib=$(usex taglib)
|
||||
-DWITH_LIBPODOFO=$(usex pdf)
|
||||
-DWITH_Freetype=$(usex truetype)
|
||||
)
|
||||
|
||||
kde4-base_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user