botan: new package

This commit is contained in:
suvari
2022-07-29 19:50:46 +03:00
parent 4d62621d26
commit 8f66778c9a
9 changed files with 447 additions and 85 deletions
+37
View File
@@ -0,0 +1,37 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import get
def setup():
shelltools.makedirs("build")
shelltools.cd("build")
shelltools.system("../configure.py --prefix=/usr \
--with-bzip \
--with-lzma \
--with-zlib \
--with-boost \
--with-sqlite3 \
--with-os-feature=getrandom")
def build():
shelltools.cd("build")
autotools.make()
def check():
shelltools.cd("build")
autotools.make("check")
#pass
def install():
shelltools.cd("build")
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
#pisitools.dodoc("COPYING*", "README")
+70
View File
@@ -0,0 +1,70 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>botan</Name>
<Homepage>https://botan.randombit.net/</Homepage>
<Packager>
<Name>Kamil Atlı</Name>
<Email>suvari@pisilinux.org</Email>
</Packager>
<License>BSD</License>
<IsA>library</IsA>
<Icon>botan</Icon>
<Summary>Cryptography Toolkit</Summary>
<Description>Crypto library written in C++</Description>
<Archive sha1sum="f8690953561b8cb60418d75e60e327d2e94bf6a3" type="tarxz">https://botan.randombit.net/releases/Botan-2.19.2.tar.xz</Archive>
<BuildDependencies>
<Dependency>bzip2</Dependency>
<Dependency>xz-devel</Dependency>
<Dependency>zlib-devel</Dependency>
<Dependency>boost-devel</Dependency>
<Dependency>sqlite-devel</Dependency>
<Dependency>python3-devel</Dependency>
</BuildDependencies>
<!--Patches>
<Patch></Patch>
</Patches-->
</Source>
<Package>
<Name>botan</Name>
<RuntimeDependencies>
<Dependency>xz</Dependency>
<Dependency>zlib</Dependency>
<Dependency>bzip2</Dependency>
<Dependency>boost</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>sqlite</Dependency>
<Dependency>python3</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="data">/usr/share/doc</Path>
<Path fileType="library">/usr/lib/python2.7/site-packages</Path>
<Path fileType="library">/usr/lib/libbotan*</Path>
</Files>
</Package>
<Package>
<Name>botan-devel</Name>
<Summary>Development files for botan</Summary>
<RuntimeDependencies>
<Dependency release="current">botan</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2022-07-29</Date>
<Version>2.19.2</Version>
<Comment>First release</Comment>
<Name>Kamil Atlı</Name>
<Email>suvari@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -1,32 +0,0 @@
diff -rupN cairo-dock-plug-ins-3.4.1.orig/CMakeLists.txt cairo-dock-plug-ins-3.4.1/CMakeLists.txt
--- cairo-dock-plug-ins-3.4.1.orig/CMakeLists.txt 2015-03-12 09:43:57.171067365 +0100
+++ cairo-dock-plug-ins-3.4.1/CMakeLists.txt 2015-03-12 09:46:20.717120675 +0100
@@ -573,11 +573,11 @@ if (enable-mono-interface)
if (NOT GMCS_EXECUTABLE OR NOT EXISTS ${GMCS_EXECUTABLE})
message (STATUS "Could not find Mono compiler gmcs, won't build Mono interface.")
else()
- pkg_check_modules (MONO_PACKAGE glib-sharp-2.0 ndesk-dbus-1.0 ndesk-dbus-glib-1.0)
+ pkg_check_modules (MONO_PACKAGE dbus-sharp-2.0 dbus-sharp-glib-2.0 glib-sharp-3.0)
if (NOT MONO_PACKAGE_FOUND)
- message (STATUS "Could not find glib-sharp-2.0, ndesk-dbus-1.0 or ndesk-dbus-glib-1.0; won't be built Mono interface.")
- message (WARNING "These modules are required to compile DBus applet with Mono interface: glib-sharp-2.0, ndesk-dbus-1.0 and ndesk-dbus-glib-1.0")
- set (MODULES_MISSING "${MODULES_MISSING} glib-sharp-2.0 ndesk-dbus-1.0 ndesk-dbus-glib-1.0")
+ message (STATUS "Could not find dbus-sharp-2.0, dbus-sharp-glib-2.0 or glib-sharp-3.0; won't be built Mono interface.")
+ message (WARNING "These modules are required to compile DBus applet with Mono interface: dbus-sharp-2.0, dbus-sharp-glib-2.0 and glib-sharp-3.0")
+ set (MODULES_MISSING "${MODULES_MISSING} dbus-sharp-2.0 dbus-sharp-glib-2.0 glib-sharp-3.0")
else()
set (MONO_FOUND TRUE)
set (with_mono yes)
diff -rupN cairo-dock-plug-ins-3.4.1.orig/Dbus/interfaces/mono/CMakeLists.txt cairo-dock-plug-ins-3.4.1/Dbus/interfaces/mono/CMakeLists.txt
--- cairo-dock-plug-ins-3.4.1.orig/Dbus/interfaces/mono/CMakeLists.txt 2015-03-12 09:52:56.491934965 +0100
+++ cairo-dock-plug-ins-3.4.1/Dbus/interfaces/mono/CMakeLists.txt 2015-03-12 09:54:07.418777441 +0100
@@ -3,7 +3,7 @@
execute_process(COMMAND ${GMCS_EXECUTABLE}
-target:library
- -pkg:glib-sharp-2.0 -pkg:ndesk-dbus-1.0 -pkg:ndesk-dbus-glib-1.0
+ -pkg:dbus-sharp-2.0 -pkg:dbus-sharp-glib-2.0 -pkg:glib-sharp-3.0
-out:${CMAKE_CURRENT_BINARY_DIR}/CDApplet.dll
${CMAKE_CURRENT_SOURCE_DIR}/CDApplet.cs ${CMAKE_CURRENT_SOURCE_DIR}/ISubApplet.cs ${CMAKE_CURRENT_SOURCE_DIR}/IApplet.cs)
### find how to register to GAC ...
@@ -0,0 +1,52 @@
From 402a2d7bb657be4ad4072f07612e008e846d5e97 Mon Sep 17 00:00:00 2001
From: Fabounet <fabounet03@gmail.com>
Date: Sun, 22 May 2016 21:13:21 +0200
Subject: [PATCH] [1581725] Updated the weather URL we retrieve data from
---
weather/src/applet-config.c | 2 +-
weather/src/applet-read-data.c | 3 ---
weather/src/applet-struct.h | 3 +++
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/weather/src/applet-config.c b/weather/src/applet-config.c
index c9a33c2..0a27a8a 100755
--- a/weather/src/applet-config.c
+++ b/weather/src/applet-config.c
@@ -174,7 +174,7 @@ static void _on_got_location_data (const gchar *cLocationData, GldiModuleInstanc
gldi_task_discard (myData.pGetLocationTask);
myData.pGetLocationTask = NULL;
}
-#define CD_WEATHER_BASE_URL "http://xml.weather.com"
+
static void _cd_weather_search_for_location (GtkEntry *pEntry, GldiModuleInstance *myApplet)
{
const gchar *cLocationName = gtk_entry_get_text (pEntry);
diff --git a/weather/src/applet-read-data.c b/weather/src/applet-read-data.c
index 0bbdce7..8ca8d21 100755
--- a/weather/src/applet-read-data.c
+++ b/weather/src/applet-read-data.c
@@ -30,9 +30,6 @@
#include "applet-load-icons.h"
#include "applet-read-data.h"
-#define CD_WEATHER_BASE_URL "http://xml.weather.com"
-
-
static xmlDocPtr _cd_weather_open_xml_buffer (const gchar *cData, xmlNodePtr *root_node, const gchar *cRootNodeName, GError **erreur)
{
if (cData == NULL || *cData == '\0')
diff --git a/weather/src/applet-struct.h b/weather/src/applet-struct.h
index e96191e..02ba3d0 100755
--- a/weather/src/applet-struct.h
+++ b/weather/src/applet-struct.h
@@ -29,6 +29,9 @@
#define WEATHER_DEFAULT_NAME "weather"
+#define CD_WEATHER_BASE_URL "http://wxdata.weather.com/wxdata"
+
+
#define _display(cValue) ((cValue) == NULL || *((gchar*)cValue) == 'N' ? "?" : (const gchar*)(cValue))
struct _AppletConfig {
+1 -1
View File
@@ -56,9 +56,9 @@
<Dependency versionFrom="3.4.1">cairo-dock-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch>cairo-dock-plug-ins-mono.patch</Patch> -->
<Patch>cairo-dock-plugins-3.4.1-gcc10-extern.patch</Patch>
<Patch>cairo-dock-plugins-3.4.1-time_h-confict.patch</Patch>
<Patch>cairo-dock-plugins-3.4.1-0004-weather-update-URL.patch</Patch>
</Patches>
</Source>