diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-02-13 21:41:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-02-13 21:41:11 +0000 |
commit | c8d60dada2ec8eb48b2d2b290cd6683ccec40e39 (patch) | |
tree | c44943ee0563a3fa957716de909fed683117fcb9 /app-text/cuneiform/cuneiform-1.1.0-r3.ebuild | |
parent | 69051588e2f955485fe5d45d45e616bc60a2de57 (diff) |
gentoo (valentine's day) resync : 14.02.2021
Diffstat (limited to 'app-text/cuneiform/cuneiform-1.1.0-r3.ebuild')
-rw-r--r-- | app-text/cuneiform/cuneiform-1.1.0-r3.ebuild | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/app-text/cuneiform/cuneiform-1.1.0-r3.ebuild b/app-text/cuneiform/cuneiform-1.1.0-r3.ebuild index 53d1efd18b7b..3874e69f95e6 100644 --- a/app-text/cuneiform/cuneiform-1.1.0-r3.ebuild +++ b/app-text/cuneiform/cuneiform-1.1.0-r3.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit cmake-utils versionator +inherit cmake flag-o-matic -PV_MAJ=$(get_version_component_range 1-2) +PV_MAJ=$(ver_cut 1-2) MY_P=${PN}-linux-${PV} DESCRIPTION="An enterprise quality OCR engine by Cognitive Technologies" @@ -15,7 +15,6 @@ SRC_URI="https://launchpad.net/${PN}-linux/${PV_MAJ}/${PV_MAJ}/+download/${MY_P} LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" - IUSE="debug graphicsmagick" RDEPEND=" @@ -25,21 +24,20 @@ DEPEND="${RDEPEND}" S=${WORKDIR}/${MY_P} -DOCS=( readme.txt ) PATCHES=( # From Fedora - "${FILESDIR}/c-assert.diff" - "${FILESDIR}/libm.diff" - "${FILESDIR}/${P}-fix_buffer_overflow.patch" - "${FILESDIR}/${P}-fix_buffer_overflow_2.patch" - "${FILESDIR}/${P}-gcc6.patch" - "${FILESDIR}/${P}-gcc7.patch" - "${FILESDIR}/${P}-typos.patch" + "${FILESDIR}"/${P}-c-assert.patch + "${FILESDIR}"/${P}-libm.patch + "${FILESDIR}"/${P}-fix_buffer_overflow.patch + "${FILESDIR}"/${P}-fix_buffer_overflow_2.patch + "${FILESDIR}"/${P}-gcc6.patch + "${FILESDIR}"/${P}-gcc7.patch + "${FILESDIR}"/${P}-typos.patch ) src_prepare() { - use graphicsmagick && PATCHES+=( "${FILESDIR}/graphicsmagick.diff" ) - cmake-utils_src_prepare + use graphicsmagick && PATCHES+=( "${FILESDIR}"/${P}-graphicsmagick.patch ) + cmake_src_prepare # respect LDFLAGS sed -i 's:\(set[(]CMAKE_SHARED_LINKER_FLAGS "[^"]*\):\1 $ENV{LDFLAGS}:' \ @@ -48,12 +46,16 @@ src_prepare() { # Fix automagic dependencies / linking if use graphicsmagick; then sed -i "s:find_package(ImageMagick COMPONENTS Magick++):#DONOTFIND:" \ - cuneiform_src/CMakeLists.txt \ - || die "Sed for ImageMagick automagic dependency failed." + cuneiform_src/CMakeLists.txt || die fi } +src_configure() { + append-flags -fcommon + cmake_src_configure +} + src_install() { - cmake-utils_src_install - doman "${FILESDIR}/${PN}.1" + cmake_src_install + doman "${FILESDIR}"/${PN}.1 } |