From 494629f08552063e4f378f262ed513ab33fe5bcb Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 10 Sep 2016 01:51:44 +0200 Subject: [PATCH] net-im/pidgin-opensteamworks: add scm exheres --- metadata/repository_mask.conf | 1 + ...n-opensteamworks-1.6.1_p20160218.exheres-0 | 45 +---------------- .../pidgin-opensteamworks-build.exlib | 50 +++++++++++++++++++ .../pidgin-opensteamworks-scm.exheres-0 | 9 ++++ 4 files changed, 61 insertions(+), 44 deletions(-) create mode 100644 packages/net-im/pidgin-opensteamworks/pidgin-opensteamworks-build.exlib create mode 100644 packages/net-im/pidgin-opensteamworks/pidgin-opensteamworks-scm.exheres-0 diff --git a/metadata/repository_mask.conf b/metadata/repository_mask.conf index 7a1bfc9f..b996f0b5 100644 --- a/metadata/repository_mask.conf +++ b/metadata/repository_mask.conf @@ -5,6 +5,7 @@ games-rpg/valyriatear[~scm] games-strategy/freesynd[~scm] media-gfx/pinta[~scm] + net-im/pidgin-opensteamworks[~scm] net-misc/remmina[~scm] x11-apps/terminator[~scm] x11-misc/cbatticon[~scm] diff --git a/packages/net-im/pidgin-opensteamworks/pidgin-opensteamworks-1.6.1_p20160218.exheres-0 b/packages/net-im/pidgin-opensteamworks/pidgin-opensteamworks-1.6.1_p20160218.exheres-0 index bcdc0bbf..187f7e9c 100644 --- a/packages/net-im/pidgin-opensteamworks/pidgin-opensteamworks-1.6.1_p20160218.exheres-0 +++ b/packages/net-im/pidgin-opensteamworks/pidgin-opensteamworks-1.6.1_p20160218.exheres-0 @@ -2,56 +2,13 @@ # Distributed under the terms of the GNU General Public License v2 require github [ user=EionRobb rev=5a5bebab831618b658ffdeb418b8b2e430a18dd4 ] +require pidgin-opensteamworks-build -SUMMARY="Steam protocol plugin for pidgin" - -LICENCES="GPL-3" SLOT="0" PLATFORMS="~amd64 ~x86" -MYOPTIONS=" - ( providers: gcrypt libressl mbedtls nss openssl ) [[ - number-selected = exactly-one - ]] -" - -DEPENDENCIES=" - build: - virtual/pkg-config - build+run: - core/json-glib - dev-libs/glib:2 - gnome-desktop/libgnome-keyring - net-im/pidgin - providers:gcrypt? ( dev-libs/libgcrypt:= ) - providers:libressl? ( dev-libs/libressl:= ) - providers:mbedtls? ( dev-libs/mbedtls:= ) - providers:nss? ( dev-libs/nss:= ) - providers:openssl? ( dev-libs/openssl:= ) -" - -WORK=${WORK}/steam-mobile - DEFAULT_SRC_PREPARE_PATCHES=( -p2 "${FILES}"/0001-Add-mbedtls-openssl-as-STEAM_CRYPT_BACKEND.patch -p2 "${FILES}"/0002-Respect-system-LDFLAGS.patch ) -src_compile() { - local STEAM_CRYPT_BACKEND= - - if option providers:nss ; then - STEAM_CRYPT_BACKEND=nss - elif option providers:gcrypt ; then - STEAM_CRYPT_BACKEND=gcrypt - elif option providers:mbedtls ; then - STEAM_CRYPT_BACKEND=mbedtls - elif option providers:libressl ; then - STEAM_CRYPT_BACKEND=openssl - elif option providers:openssl ; then - STEAM_CRYPT_BACKEND=openssl - fi - - emake STEAM_CRYPT_BACKEND=${STEAM_CRYPT_BACKEND} -} - diff --git a/packages/net-im/pidgin-opensteamworks/pidgin-opensteamworks-build.exlib b/packages/net-im/pidgin-opensteamworks/pidgin-opensteamworks-build.exlib new file mode 100644 index 00000000..5c717fa6 --- /dev/null +++ b/packages/net-im/pidgin-opensteamworks/pidgin-opensteamworks-build.exlib @@ -0,0 +1,50 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +export_exlib_phases src_compile + +SUMMARY="Steam protocol plugin for pidgin" + +LICENCES="GPL-3" + +MYOPTIONS=" + ( providers: gcrypt libressl mbedtls nss openssl ) [[ + number-selected = exactly-one + ]] +" + +DEPENDENCIES=" + build: + virtual/pkg-config + build+run: + core/json-glib + dev-libs/glib:2 + gnome-desktop/libgnome-keyring + net-im/pidgin + providers:gcrypt? ( dev-libs/libgcrypt:= ) + providers:libressl? ( dev-libs/libressl:= ) + providers:mbedtls? ( dev-libs/mbedtls:= ) + providers:nss? ( dev-libs/nss:= ) + providers:openssl? ( dev-libs/openssl:= ) +" + +WORK=${WORK}/steam-mobile + +pidgin-opensteamworks-build_src_compile() { + local STEAM_CRYPT_BACKEND= + + if option providers:nss ; then + STEAM_CRYPT_BACKEND=nss + elif option providers:gcrypt ; then + STEAM_CRYPT_BACKEND=gcrypt + elif option providers:mbedtls ; then + STEAM_CRYPT_BACKEND=mbedtls + elif option providers:libressl ; then + STEAM_CRYPT_BACKEND=openssl + elif option providers:openssl ; then + STEAM_CRYPT_BACKEND=openssl + fi + + emake STEAM_CRYPT_BACKEND=${STEAM_CRYPT_BACKEND} +} + diff --git a/packages/net-im/pidgin-opensteamworks/pidgin-opensteamworks-scm.exheres-0 b/packages/net-im/pidgin-opensteamworks/pidgin-opensteamworks-scm.exheres-0 new file mode 100644 index 00000000..7aa16f76 --- /dev/null +++ b/packages/net-im/pidgin-opensteamworks/pidgin-opensteamworks-scm.exheres-0 @@ -0,0 +1,9 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require github [ user=EionRobb ] +require pidgin-opensteamworks-build + +SLOT="0" +PLATFORMS="~amd64 ~x86" +