You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
48 lines
1.0 KiB
5 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
5 years ago
|
# Copyright 2020 The Trinity Desktop Project
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI="7"
|
||
5 years ago
|
|
||
5 years ago
|
inherit flag-o-matic autotools
|
||
|
|
||
5 years ago
|
# Don't use Gentoo mirrors
|
||
|
RESTRICT="mirror"
|
||
|
|
||
5 years ago
|
DESCRIPTION="Library of assorted C utility functions"
|
||
|
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
||
5 years ago
|
SRC_URI="https://mirror.amdmi3.ru/distfiles/${P}.tar.gz"
|
||
5 years ago
|
|
||
|
LICENSE="LGPL-2.1+"
|
||
|
SLOT="0"
|
||
5 years ago
|
KEYWORDS="amd64 ppc ppc64 sparc x86"
|
||
5 years ago
|
IUSE="ssl libressl"
|
||
5 years ago
|
|
||
5 years ago
|
DEPEND="ssl? (
|
||
5 years ago
|
!libressl? ( dev-libs/openssl:= )
|
||
|
libressl? ( dev-libs/libressl:= )
|
||
|
)"
|
||
5 years ago
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}/${P}-libs.patch"
|
||
|
"${FILESDIR}/fix-Wformat-security-warnings.patch"
|
||
5 years ago
|
"${FILESDIR}/without-ssl3.patch"
|
||
5 years ago
|
)
|
||
|
|
||
5 years ago
|
S="${WORKDIR}/${PN}"
|
||
|
|
||
5 years ago
|
src_prepare() {
|
||
|
default
|
||
5 years ago
|
mv "${S}"/configure.in "${S}"/configure.ac
|
||
|
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac \
|
||
5 years ago
|
|| die 'failed to rename AM_CONFIG_HEADER macro'
|
||
|
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
5 years ago
|
append-cppflags -D_GNU_SOURCE
|
||
5 years ago
|
econf $(use_enable ssl)
|
||
|
}
|