From fb7c3e14cb5e408e0b5d58b36b2cd430d6133910 Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Sat, 15 Dec 2018 17:53:57 +0100 Subject: [PATCH] New package: gmime3-3.2.3 --- common/shlibs | 1 + srcpkgs/gmime3-devel | 1 + srcpkgs/gmime3/files/iconv-detect.h | 5 +++ srcpkgs/gmime3/template | 53 +++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 120000 srcpkgs/gmime3-devel create mode 100644 srcpkgs/gmime3/files/iconv-detect.h create mode 100644 srcpkgs/gmime3/template diff --git a/common/shlibs b/common/shlibs index 7e467571639..9ac871c89e5 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3359,3 +3359,4 @@ libwoff2dec.so.1.0.2 libwoff2dec1.0.2-1.0.2_1 libcloudproviders.so.0 libcloudproviders-0.2.5_2 libKF5KDEGames.so.7 libkdegames-18.08.3_1 libidn2.so.0 libidn2-2.0.5_1 +libgmime-3.0.so.0 gmime3-3.2.3_1 diff --git a/srcpkgs/gmime3-devel b/srcpkgs/gmime3-devel new file mode 120000 index 00000000000..8029aee6f9f --- /dev/null +++ b/srcpkgs/gmime3-devel @@ -0,0 +1 @@ +gmime3 \ No newline at end of file diff --git a/srcpkgs/gmime3/files/iconv-detect.h b/srcpkgs/gmime3/files/iconv-detect.h new file mode 100644 index 00000000000..714cb5aa9dd --- /dev/null +++ b/srcpkgs/gmime3/files/iconv-detect.h @@ -0,0 +1,5 @@ +/* This is an auto-generated header, DO NOT EDIT! */ + +#define ICONV_ISO_INT_FORMAT "iso-%u-%u" +#define ICONV_ISO_STR_FORMAT "iso-%u-%s" +#define ICONV_10646 "iso-10646" diff --git a/srcpkgs/gmime3/template b/srcpkgs/gmime3/template new file mode 100644 index 00000000000..b95c6cb9d74 --- /dev/null +++ b/srcpkgs/gmime3/template @@ -0,0 +1,53 @@ +# Template file for 'gmime3' +pkgname=gmime3 +version=3.2.3 +revision=1 +wrksrc="gmime-${version}" +build_style=gnu-configure +configure_args="--disable-static --enable-crypto" +hostmakedepends="pkg-config $(vopt_if gir gobject-introspection) + $(vopt_if vala vala-devel)" +makedepends="glib-devel gpgme-devel libidn2-devel" +checkdepends="gnupg2" +short_desc="GNOME Core mime parsing library" +maintainer="Rasmus Thomsen " +license="LGPL-2.1-or-later" +homepage="https://github.com/jstedfast/gmime" +distfiles="${GNOME_SITE}/gmime/${version%.*}/gmime-${version}.tar.xz" +checksum=6a0875eeb552ab447dd54853a68ced62217d863631048737dd97eaa2713e7311 + +# Package build options +build_options+="gir vala" + +# Disable gir for cross builds. +if [ -z "$CROSS_BUILD" ]; then + build_options_default="gir vala" +fi + +case "$XBPS_TARGET_MACHINE" in + i686|x86_64|armv?l*|aarch64*) + configure_args+=" am_cv_func_iconv=yes am_cv_func_iconv_works=yes" + configure_args+=" am_cv_lib_iconv=no ac_cv_have_iconv_detect_h=yes" + configure_args+=" am_cv_proto_iconv_arg1=" + pre_build() { + cp ${FILESDIR}/*.h ${wrksrc} + } + ;; +esac + +gmime3-devel_package() { + depends="libglib-devel zlib-devel ${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + vmove usr/share/gtk-doc + if [ "$build_option_gir" ]; then + vmove "usr/share/gir-*" + fi + if [ "$build_option_gir" ]; then + vmove usr/share/vala + fi + } +}