summaryrefslogtreecommitdiff
path: root/dev-cpp/asio
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/asio')
-rw-r--r--dev-cpp/asio/Manifest4
-rw-r--r--dev-cpp/asio/asio-1.30.2.ebuild64
-rw-r--r--dev-cpp/asio/asio-1.34.2.ebuild60
-rw-r--r--dev-cpp/asio/asio-1.36.0.ebuild36
-rw-r--r--dev-cpp/asio/asio-1.38.0.ebuild28
-rw-r--r--dev-cpp/asio/files/asio-1.30.1-pkgconfig.patch24
-rw-r--r--dev-cpp/asio/metadata.xml8
7 files changed, 181 insertions, 43 deletions
diff --git a/dev-cpp/asio/Manifest b/dev-cpp/asio/Manifest
index db6b930e0d7f..a721a1497021 100644
--- a/dev-cpp/asio/Manifest
+++ b/dev-cpp/asio/Manifest
@@ -1,2 +1,4 @@
-DIST asio-1-36-0.tar.gz 2858525 BLAKE2B 6b3a85e88509dd0184db7f3448be07e31a614709b16f4bec69e187f8bc450b08ec56dd0018e941d5509c65090e7f31a5ae9fb44220c00d8d7c7ce8cf27e3d960 SHA512 d44b35d9d1900de35aa10bf339c7e16a06e110377fd70fbefba91599d24cff32cc3dc88a4b0bf1e1706f9ac46177982edb5c7f969b72a57123be6550a3b062d8
DIST asio-1-38-0.tar.gz 2890996 BLAKE2B 23df98b87aaff488127901a19373872903a61e0b74bd17e83dbf535da02f1433b89be1d9501a8b95528789036c02bb678f641a08c64cc583f96839b303d90900 SHA512 88a71de9da318ad047effb3f1594617eba6996d443e885757bb301107bc51232e5338bde1a0df84b25bacb794805353ca409a1b641dadeb7fbcffbd6770ba29b
+DIST asio-1.30.2.tar.bz2 3196850 BLAKE2B d902fda2338d9717bb8f2f5d43468c5d0b64591814c3ae3134350650f0dd97bf241287347d324b11d0e6993b1b44373df13305d736df09ad3375ce4976f5bb27 SHA512 2d26cdcfcc0c310e82ab502551b51d70fd95ba4628bd306929e78539299974fc14aa6ba27cf256f1df7a56539cb885012ba02a202ae17bf817ee6311308a795a
+DIST asio-1.34.2.tar.bz2 3219261 BLAKE2B 91342cc53f0d6e940528ad3b7dcad314bb1ce66fe5a8985d889e2ada20341321463b527d443c6421e1e87f06ff99d2eddf032d32aa799e52b563d9278332ac93 SHA512 cdb7106a7330d66a302f601b45a5e444220f9e8932cb97536c8fd069e31aeb06a9a33cce67ad8154816845e7d24a9247f493c4d00c7359f5c6efaeec9d627a9f
+DIST asio-1.36.0.tar.bz2 3217022 BLAKE2B 4ffe810c9d3eab6645594fc857e4c6dc835d7e4304c4f367020bfa0c370490cde2e9e88ae54ce65f665762f615127833aba1c0e2ae05752ad1037900eafe3c98 SHA512 87cfe606a38d3b697a15dacc35e367f556fb9e36b3d80785ddf3b59b6d214417ea7d483586077e7023f732b57a1369e2eb9b0f13be8b3f9f8bfdd59005683510
diff --git a/dev-cpp/asio/asio-1.30.2.ebuild b/dev-cpp/asio/asio-1.30.2.ebuild
new file mode 100644
index 000000000000..97f45a7525a6
--- /dev/null
+++ b/dev-cpp/asio/asio-1.30.2.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Asynchronous Network Library"
+HOMEPAGE="https://think-async.com https://github.com/chriskohlhoff/asio"
+SRC_URI="https://downloads.sourceforge.net/asio/asio/${P}.tar.bz2"
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~sparc x86"
+IUSE="doc examples test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ test? (
+ dev-libs/boost
+ dev-libs/openssl
+ )
+"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/asio-1.30.1-pkgconfig.patch"
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+
+ if ! use test; then
+ # Don't build nor install any examples or unittests
+ # since we don't have a script to run them
+ cat > src/Makefile.in <<-EOF || die
+ all:
+
+ install:
+
+ clean:
+ EOF
+ fi
+}
+
+src_install() {
+ use doc && local HTML_DOCS=( doc/. )
+ default
+
+ if use examples; then
+ # Get rid of the object files
+ emake clean
+ dodoc -r src/examples
+ docompress -x /usr/share/doc/${PF}/examples
+
+ # Make links to the example .cpp files work
+ # https://bugs.gentoo.org/828648
+ if use doc; then
+ dosym ../examples /usr/share/doc/${PF}/src/examples
+ fi
+ fi
+}
diff --git a/dev-cpp/asio/asio-1.34.2.ebuild b/dev-cpp/asio/asio-1.34.2.ebuild
new file mode 100644
index 000000000000..fcb6bebd1e24
--- /dev/null
+++ b/dev-cpp/asio/asio-1.34.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Asynchronous Network Library"
+HOMEPAGE="https://think-async.com https://github.com/chriskohlhoff/asio"
+SRC_URI="https://downloads.sourceforge.net/asio/asio/${P}.tar.bz2"
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~sparc x86"
+IUSE="doc examples test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ test? (
+ dev-libs/boost
+ dev-libs/openssl
+ )
+"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+ default
+
+ eautoreconf
+
+ if ! use test; then
+ # Don't build nor install any examples or unittests
+ # since we don't have a script to run them
+ cat > src/Makefile.in <<-EOF || die
+ all:
+
+ install:
+
+ clean:
+ EOF
+ fi
+}
+
+src_install() {
+ use doc && local HTML_DOCS=( doc/. )
+ default
+
+ if use examples; then
+ # Get rid of the object files
+ emake clean
+ dodoc -r src/examples
+ docompress -x /usr/share/doc/${PF}/examples
+
+ # Make links to the example .cpp files work
+ # https://bugs.gentoo.org/828648
+ if use doc; then
+ dosym ../examples /usr/share/doc/${PF}/src/examples
+ fi
+ fi
+}
diff --git a/dev-cpp/asio/asio-1.36.0.ebuild b/dev-cpp/asio/asio-1.36.0.ebuild
index bb88b7a7ce5a..8718e9e6a5fa 100644
--- a/dev-cpp/asio/asio-1.36.0.ebuild
+++ b/dev-cpp/asio/asio-1.36.0.ebuild
@@ -1,31 +1,27 @@
-# Copyright 2021-2025 Liguros Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
+
EAPI=8
inherit autotools
DESCRIPTION="Asynchronous Network Library"
-HOMEPAGE="http://think-async.com/Asio/ https://github.com/chriskohlhoff/asio"
-MY_PV=$(ver_rs 1- "-")
-SRC_URI="https://github.com/chriskohlhoff/asio/archive/${PN}-${MY_PV}.tar.gz"
+HOMEPAGE="https://think-async.com https://github.com/chriskohlhoff/asio"
+SRC_URI="https://downloads.sourceforge.net/asio/asio/${P}.tar.bz2"
LICENSE="Boost-1.0"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-IUSE="doc examples ssl test"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~sparc x86"
+IUSE="doc examples test"
RESTRICT="!test? ( test )"
-# test searches for libssl during ./configure, and REQUIRED_USE is easier than
-# patching configure to not search for it with USE=-ssl
-REQUIRED_USE="test? ( ssl )"
-
-RDEPEND="dev-libs/boost:=
- ssl? (
- dev-libs/openssl:0=
- )"
-DEPEND="${RDEPEND}"
-
-S=${WORKDIR}/${PN}-${PN}-${MY_PV}/asio
+DEPEND="
+ test? (
+ dev-libs/boost
+ dev-libs/openssl
+ )
+"
+BDEPEND="virtual/pkgconfig"
src_prepare() {
default
@@ -54,5 +50,11 @@ src_install() {
emake clean
dodoc -r src/examples
docompress -x /usr/share/doc/${PF}/examples
+
+ # Make links to the example .cpp files work
+ # https://bugs.gentoo.org/828648
+ if use doc; then
+ dosym ../examples /usr/share/doc/${PF}/src/examples
+ fi
fi
}
diff --git a/dev-cpp/asio/asio-1.38.0.ebuild b/dev-cpp/asio/asio-1.38.0.ebuild
index 7e9067a32e57..c7d20c62dc4e 100644
--- a/dev-cpp/asio/asio-1.38.0.ebuild
+++ b/dev-cpp/asio/asio-1.38.0.ebuild
@@ -1,35 +1,32 @@
-# Copyright 2021-2026 Liguros Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
+
EAPI=8
inherit autotools
DESCRIPTION="Asynchronous Network Library"
-HOMEPAGE="http://think-async.com/Asio/ https://github.com/chriskohlhoff/asio"
-MY_PV=$(ver_rs 1- "-")
-SRC_URI="https://github.com/chriskohlhoff/asio/archive/${PN}-${MY_PV}.tar.gz"
+HOMEPAGE="https://think-async.com https://github.com/chriskohlhoff/asio"
+SRC_URI="https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-${PV//./-}.tar.gz"
+S="${WORKDIR}/asio-asio-${PV//./-}"
LICENSE="Boost-1.0"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-IUSE="doc examples ssl test"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="examples test"
RESTRICT="!test? ( test )"
DEPEND="
test? (
dev-libs/boost
- ssl? (
- dev-libs/openssl:0=
-
- )
+ dev-libs/openssl
)
"
BDEPEND="virtual/pkgconfig"
-S=${WORKDIR}/${PN}-${PN}-${MY_PV}/
-
src_prepare() {
default
+
eautoreconf
if ! use test; then
@@ -46,7 +43,6 @@ src_prepare() {
}
src_install() {
- use doc && local HTML_DOCS=( doc/. )
default
if use examples; then
@@ -54,11 +50,5 @@ src_install() {
emake clean
dodoc -r src/examples
docompress -x /usr/share/doc/${PF}/examples
-
- # Make links to the example .cpp files work
- # https://bugs.gentoo.org/828648
- if use doc; then
- dosym ../examples /usr/share/doc/${PF}/src/examples
- fi
fi
}
diff --git a/dev-cpp/asio/files/asio-1.30.1-pkgconfig.patch b/dev-cpp/asio/files/asio-1.30.1-pkgconfig.patch
new file mode 100644
index 000000000000..c58b2a9df86d
--- /dev/null
+++ b/dev-cpp/asio/files/asio-1.30.1-pkgconfig.patch
@@ -0,0 +1,24 @@
+Install .pc file to /usr/share instead of /usr/lib because there are no .so files
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,7 +1,6 @@
+ AUTOMAKE_OPTIONS = foreign dist-bzip2 dist-zip
+
+-pkgconfig_DATA = asio.pc
+-pkgconfigdir = $(libdir)/pkgconfig
++noarch_pkgconfig_DATA = asio.pc
+
+ SUBDIRS = include src
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -8,7 +8,7 @@ AM_PROG_CC_C_O
+ AC_PROG_CXX
+ AC_LANG(C++)
+ AC_PROG_RANLIB
+-PKG_INSTALLDIR
++PKG_NOARCH_INSTALLDIR
+
+ AC_DEFINE(_REENTRANT, [1], [Define this])
+
diff --git a/dev-cpp/asio/metadata.xml b/dev-cpp/asio/metadata.xml
index e77b6b0f2382..0575427af993 100644
--- a/dev-cpp/asio/metadata.xml
+++ b/dev-cpp/asio/metadata.xml
@@ -1,15 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="project">
- <email>dev@liguros.net</email>
- <name>Development</name>
- </maintainer>
- <maintainer type="person">
+ <maintainer type="person" proxied="yes">
<email>alexey+gentoo@asokolov.org</email>
<name>Alexey Sokolov</name>
</maintainer>
- <maintainer type="project">
+ <maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>