2022-08-01 10:04:32 +03:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2013-10-09 13:09:18 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2022-08-01 10:04:32 +03:00
|
|
|
EAPI=8
|
2013-10-09 13:09:18 +04:00
|
|
|
|
2022-08-01 10:04:32 +03:00
|
|
|
inherit multilib toolchain-funcs
|
2013-10-09 13:09:18 +04:00
|
|
|
|
|
|
|
DESCRIPTION="C/C++ routines for fast encoding/decoding data into and from a base64-encoded format"
|
|
|
|
HOMEPAGE="http://libb64.sourceforge.net"
|
|
|
|
SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
|
|
|
|
|
|
|
|
LICENSE="LGPL-2.1"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
|
|
|
|
DEPEND="app-arch/unzip"
|
|
|
|
RDEPEND=""
|
|
|
|
|
2022-08-01 10:04:32 +03:00
|
|
|
#PATCHES=( "${FILESDIR}/${P}-build-shared-lib.patch" )
|
|
|
|
|
2013-10-09 13:09:18 +04:00
|
|
|
src_prepare() {
|
|
|
|
# Respect compiler environment
|
2013-10-09 13:16:27 +04:00
|
|
|
tc-export CC CXX
|
2013-10-09 13:09:18 +04:00
|
|
|
|
|
|
|
# Build shared library instead of static
|
2022-08-01 10:04:32 +03:00
|
|
|
eapply -p0 "${FILESDIR}/${P}-build-shared-lib.patch"
|
2013-10-09 13:09:18 +04:00
|
|
|
|
2022-08-01 10:04:32 +03:00
|
|
|
eapply_user
|
2013-10-09 13:09:18 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
# Build library only
|
|
|
|
emake all_src
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
doheader -r include/b64
|
|
|
|
dolib.so "src/${PN}.so"
|
|
|
|
dosym "${PN}.so" "/usr/$(get_libdir)/${PN}.so.1"
|
|
|
|
}
|