This commit is contained in:
Gerben Jan Dijkman 2022-10-28 14:28:23 +02:00
parent b1748dec0b
commit cad718afad
3 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,3 @@
DIST libomemo-0.7.1.tar.gz 23770 BLAKE2B a3909650e399075f62026bd048a667a276a6cd7197ac18ddf9e3c12f57e5fd9cb2f5532ba69d0836af87e1415a5ffdc1746cf90a596dcf255265a64e921f039d SHA512 e5769dee4db7be246853e47e29ded9eefad2f62422951ce5dd0c1acee3bb92131c0423f09bc716be0f55fb02c747f07a6d5b2c656bdfeee0ee148252c51a1050
DIST libomemo-0.8.0.tar.gz 25743 BLAKE2B 9b13aaaa21f16425fcecf963e187c5b686986e6bb01255c78042ea64e48d2c75a06729d1ad6e6b26d62d191e7d99305b7a8f1e07078221c6d14a12f587bf0743 SHA512 ff90de81928754f56bd2c6f3fcc83c13bb87d346e9bbedd6327bec33aab61a79061a709d541082723840205eb631b1a5493a43a5824e9e87e257d370692a606b
DIST libomemo-0.8.1.tar.gz 28648 BLAKE2B b75ad298946dff680705ba0927293ea30cb8bf616a417c6584cef9f84e0894c5581462782a4b1003bf9e530695eea10bba9f37ae94e957a0008a35c862f17f62 SHA512 452c7ff9eb809de37df24bd0857c30c1e1ed1d4638c8338bb101f6d5a31be700f174f4fe65fb8ccd5358a674f8397a0eb54d8e03abfdce57cea60bcd4959f40a

View File

@ -0,0 +1,25 @@
From 3911dc9d496f61b774d091bd1f2394d458abe8d7 Mon Sep 17 00:00:00 2001
From: Sebastian Pipping <sebastian@pipping.org>
Date: Sun, 21 Feb 2021 20:51:01 +0100
Subject: [PATCH] Add missing symlinks libomemo.so.$(VER_MAJ) and libomemo.so
---
Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile b/Makefile
index e7b9ea6..289d2ec 100644
--- a/Makefile
+++ b/Makefile
@@ -108,6 +108,8 @@ install: $(BDIR)
install -d $(DESTDIR)/$(PREFIX)/lib/$(ARCH)/pkgconfig/
install -m 644 $(BDIR)/libomemo-conversations.a $(DESTDIR)/$(PREFIX)/lib/$(ARCH)/libomemo.a
install -m 644 $(BDIR)/libomemo.so $(DESTDIR)/$(PREFIX)/lib/$(ARCH)/libomemo.so.$(VERSION)
+ ln -s libomemo.so.$(VERSION) $(DESTDIR)/$(PREFIX)/lib/$(ARCH)/libomemo.so.$(VER_MAJ)
+ ln -s libomemo.so.$(VERSION) $(DESTDIR)/$(PREFIX)/lib/$(ARCH)/libomemo.so
install -m 644 $(BDIR)/libomemo.pc $(DESTDIR)/$(PREFIX)/lib/$(ARCH)/pkgconfig/
install -d $(DESTDIR)/$(PREFIX)/include/libomemo/
install -m 644 $(SDIR)/libomemo_crypto.h $(DESTDIR)/$(PREFIX)/include/libomemo/
--
2.30.1

View File

@ -0,0 +1,38 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
DESCRIPTION="Implementation of OMEMO (XEP-0384) in C"
HOMEPAGE="https://github.com/gkdr/libomemo"
SRC_URI="https://github.com/gkdr/libomemo/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
IUSE="test"
RDEPEND="
dev-db/sqlite
dev-libs/glib
dev-libs/libgcrypt
dev-libs/mxml
"
DEPEND="
${RDEPEND}
virtual/pkgconfig
test? ( dev-util/cmocka )
"
RESTRICT="!test? ( test )"
DOCS=( CHANGELOG.md README.md )
src_configure() {
local mycmakeargs=(
-DOMEMO_WITH_TESTS=$(usex test)
)
cmake_src_configure
}