All of lore.kernel.org
 help / color / mirror / Atom feed
From: TIAN Yuanhao <tianyuanhao3@163.com>
To: buildroot@buildroot.org
Subject: [Buildroot] [PATCH/next 4/6] package/libsolv: new package
Date: Mon, 28 Nov 2022 12:34:16 +0000	[thread overview]
Message-ID: <20221128123418.2197-4-tianyuanhao3@163.com> (raw)
In-Reply-To: <20221128123418.2197-1-tianyuanhao3@163.com>

Required by micromamba.

Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
---
 DEVELOPERS                   |  1 +
 package/Config.in            |  1 +
 package/libsolv/Config.in    |  9 +++++++++
 package/libsolv/libsolv.hash |  3 +++
 package/libsolv/libsolv.mk   | 25 +++++++++++++++++++++++++
 5 files changed, 39 insertions(+)
 create mode 100644 package/libsolv/Config.in
 create mode 100644 package/libsolv/libsolv.hash
 create mode 100644 package/libsolv/libsolv.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 2541a64dbf..572086d129 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2739,6 +2739,7 @@ F:	package/most/
 
 N:	TIAN Yuanhao <tianyuanhao3@163.com>
 F:	package/cli11/
+F:	package/libsolv/
 F:	package/open-isns/
 F:	package/termcolor/
 F:	package/tl-expected/
diff --git a/package/Config.in b/package/Config.in
index 2e73a6e3fa..b682fbe0ab 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2054,6 +2054,7 @@ menu "Other"
 	source "package/libshdata/Config.in"
 	source "package/libsigc/Config.in"
 	source "package/libsigsegv/Config.in"
+	source "package/libsolv/Config.in"
 	source "package/libspatialindex/Config.in"
 	source "package/libtalloc/Config.in"
 	source "package/libtasn1/Config.in"
diff --git a/package/libsolv/Config.in b/package/libsolv/Config.in
new file mode 100644
index 0000000000..1415d2bc2b
--- /dev/null
+++ b/package/libsolv/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LIBSOLV
+	bool "libsolv"
+	depends on BR2_USE_MMU # fork()
+	select BR2_PACKAGE_ZLIB
+	help
+	  A free package dependency solver using a satisfiability
+	  algorithm.
+
+	  https://github.com/openSUSE/libsolv
diff --git a/package/libsolv/libsolv.hash b/package/libsolv/libsolv.hash
new file mode 100644
index 0000000000..162e46e54d
--- /dev/null
+++ b/package/libsolv/libsolv.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  968aef452b5493751fa0168cd58745a77c755e202a43fe8d549d791eb16034d5  libsolv-0.7.22.tar.gz
+sha256  57f15acfb29fbef7749779e096a5885c60b716633e34484a21bb717554c0198f  LICENSE.BSD
diff --git a/package/libsolv/libsolv.mk b/package/libsolv/libsolv.mk
new file mode 100644
index 0000000000..49c52e0c74
--- /dev/null
+++ b/package/libsolv/libsolv.mk
@@ -0,0 +1,25 @@
+################################################################################
+#
+# libsolv
+#
+################################################################################
+
+LIBSOLV_VERSION = 0.7.22
+LIBSOLV_SITE = $(call github,openSUSE,libsolv,$(LIBSOLV_VERSION))
+LIBSOLV_LICENSE = BSD-3-Clause
+LIBSOLV_LICENSE_FILES = LICENSE.BSD
+LIBSOLV_INSTALL_STAGING = YES
+LIBSOLV_DEPENDENCIES = zlib
+LIBSOLV_CONF_OPTS = -DCMAKE_CXX_COMPILER_FORCED=ON
+
+ifeq ($(BR2_STATIC_LIBS),y)
+LIBSOLV_CONF_OPTS += -DDISABLE_SHARED=ON
+else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
+LIBSOLV_CONF_OPTS += -DENABLE_STATIC=ON
+endif
+
+ifeq ($(BR2_PACKAGE_MICROMAMBA),y)
+LIBSOLV_CONF_OPTS += -DENABLE_CONDA=ON
+endif
+
+$(eval $(cmake-package))
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  parent reply	other threads:[~2022-11-28 12:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-28 12:34 [Buildroot] [PATCH/next 1/6] package/cli11: new package TIAN Yuanhao
2022-11-28 12:34 ` [Buildroot] [PATCH/next 2/6] package/termcolor: " TIAN Yuanhao
2023-02-07 16:04   ` Thomas Petazzoni via buildroot
2022-11-28 12:34 ` [Buildroot] [PATCH/next 3/6] package/tl-expected: " TIAN Yuanhao
2023-02-07 16:04   ` Thomas Petazzoni via buildroot
2022-11-28 12:34 ` TIAN Yuanhao [this message]
2023-02-07 16:14   ` [Buildroot] [PATCH/next 4/6] package/libsolv: " Thomas Petazzoni via buildroot
2022-11-28 12:34 ` [Buildroot] [PATCH/next 5/6] package/reproc: " TIAN Yuanhao
2023-02-07 16:14   ` Thomas Petazzoni via buildroot
2022-11-28 12:34 ` [Buildroot] [PATCH/next 6/6] package/micromamba: " TIAN Yuanhao
2023-02-07 16:26   ` Thomas Petazzoni via buildroot
2023-02-07 16:03 ` [Buildroot] [PATCH/next 1/6] package/cli11: " Thomas Petazzoni via buildroot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221128123418.2197-4-tianyuanhao3@163.com \
    --to=tianyuanhao3@163.com \
    --cc=buildroot@buildroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.