diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2022-05-14 18:29:49 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2022-05-15 00:56:08 +0200 |
commit | ebcc30947ab80351efc2cbf66ec8446af405e3fb (patch) | |
tree | 228fbce3ae9cca34c2937f2f8ddc37ee88f34f70 | |
parent | dev-libs/libg15render: Added live ebuild (diff) | |
download | gentoo-ebcc30947ab80351efc2cbf66ec8446af405e3fb.tar.gz gentoo-ebcc30947ab80351efc2cbf66ec8446af405e3fb.tar.bz2 gentoo-ebcc30947ab80351efc2cbf66ec8446af405e3fb.zip |
dev-libs/libg15render: Bump to version 3.0.4
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
-rw-r--r-- | dev-libs/libg15render/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libg15render/files/libg15render-3.0.4-freetype_pkgconfig.patch | 59 | ||||
-rw-r--r-- | dev-libs/libg15render/libg15render-3.0.4.ebuild | 52 |
3 files changed, 112 insertions, 0 deletions
diff --git a/dev-libs/libg15render/Manifest b/dev-libs/libg15render/Manifest index b7b87acab99a..02428fd9f084 100644 --- a/dev-libs/libg15render/Manifest +++ b/dev-libs/libg15render/Manifest @@ -1 +1,2 @@ DIST libg15render-1.2.tar.bz2 246034 BLAKE2B 70c21341949186dc65bec7ef0f695c783928ab024e5bd3f83eedc527a501bee64cf0561f5e642e3e9173f063b6f74ecca458262ee9c40a2a8837f197338bbb31 SHA512 960fd6bc6159b1b12e1de3b0c07e5960d7d5056d4927be8eddf89a911e2c97a8677ef41456aa255399e8a86cd354b848fab28a47005ee2d1b6640e0c886deaac +DIST libg15render-3.0.4.tar.bz2 293668 BLAKE2B 82fece311baf59098d6196b5aa31d6584bf3f610854839e3dcf2318f3e3275ae9394ea2b21576d6e6cc4fffb2440d19b7322704087988de8c47e60d822949758 SHA512 f11470b4c8709b7cab8747d8eca4d55ddf88f6dd0a46f11de78612d6070c8b5ea7188ec1ea0236edbb0e5904e6dffd7c75831d5e00564b3cebf8b9dc58b0100e diff --git a/dev-libs/libg15render/files/libg15render-3.0.4-freetype_pkgconfig.patch b/dev-libs/libg15render/files/libg15render-3.0.4-freetype_pkgconfig.patch new file mode 100644 index 000000000000..54a8fd4c07d3 --- /dev/null +++ b/dev-libs/libg15render/files/libg15render-3.0.4-freetype_pkgconfig.patch @@ -0,0 +1,59 @@ +diff --git a/configure.ac b/configure.ac +index 97338f3..a64f64c 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -13,19 +13,41 @@ AC_PROG_CC + LT_INIT + + # Checks for --enable args +-AC_MSG_CHECKING(whether to enable FreeType2 support) +-AC_ARG_ENABLE(ttf, [ --enable-ttf enable FreeType2 support], +- if [[[ "$enableval" = "yes" ]]]; then +- AC_DEFINE(TTF_SUPPORT, [1], [Define to 1 to enable FreeType2 support]) +- CFLAGS="$CFLAGS `freetype-config --cflags`" +- FTLIB="-lfreetype" +- ttf_support="yes" +- else +- ttf_support="no" +- fi, +- ttf_support="no" +-) +-AC_MSG_RESULT($ttf_support) ++AC_ARG_ENABLE(ttf, [ --enable-ttf enable FreeType2 support],,[enable_ttf=no]) ++AS_IF([test "x$enable_ttf" != "xno"], [ ++ m4_ifdef([PKG_PROG_PKG_CONFIG], [ ++ PKG_PROG_PKG_CONFIG ++ PKG_CHECK_MODULES(FREETYPE, freetype2, ++ [ ++ AC_DEFINE(TTF_SUPPORT, [1], [Define to 1 to enable FreeType2 support]) ++ CFLAGS="$CFLAGS $FREETYPE_CFLAGS" ++ FTLIB="$FREETYPE_LIBS" ++ ], [ ++ AS_IF([test "x$enable_ttf" = "xyes"], [ ++ AC_MSG_ERROR([Cannot find freetype2]) ++ ]) ++ ]) ++ ], [ ++ AC_MSG_CHECKING(whether to enable FreeType2 support) ++ AC_PATH_PROG([FTCONFIG], [freetype-config]) ++ AS_IF([test -n "$FTCONFIG" ], [ ++ CFLAGS="$CFLAGS `$FTCONFIG --cflags`" ++ FTLIB="-lfreetype" ++ AC_DEFINE(TTF_SUPPORT, [1]) ++ AC_MSG_RESULT([yes]) ++ ], [ ++ AS_IF([test "x$enable_ttf" = "xyes"], [ ++ AC_MSG_ERROR([Cannot find freetype-config]) ++ ], [ ++ AC_DEFINE(TTF_SUPPORT, [0]) ++ ]) ++ ]) ++ AC_MSG_RESULT([no]) ++ ] ++ ) ++], [ ++ AC_MSG_RESULT(No Freetype is being used) ++]) + + # Checks for libraries. + AC_CHECK_LIB([g15], [writePixmapToLCD], ,AC_MSG_ERROR(["libg15 not found. please install it"])) diff --git a/dev-libs/libg15render/libg15render-3.0.4.ebuild b/dev-libs/libg15render/libg15render-3.0.4.ebuild new file mode 100644 index 000000000000..4fd1e505fdfa --- /dev/null +++ b/dev-libs/libg15render/libg15render-3.0.4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Small library for display text and graphics on a Logitech G15 keyboard" +HOMEPAGE="https://sourceforge.net/projects/g15tools/" +if [[ ${PV} == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/menelkir/libg15render.git" +else + SRC_URI="https://gitlab.com/menelkir/${PN}/-/archive/${PV}/${P}.tar.bz2" + KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="truetype" + +RDEPEND=" + >=dev-libs/libg15-3.0 + truetype? ( media-libs/freetype )" +DEPEND="${RDEPEND}" +BDEPEND=" + truetype? ( virtual/pkgconfig )" + +PATCHES=( + "${FILESDIR}/${P}-freetype_pkgconfig.patch" + "${FILESDIR}/${PN}-3.0.4-docdir.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-static + $(use_enable truetype ttf) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + # no static archives + find "${ED}" -type f -name '*.la' -delete || die +} |