Commit b40f6ae3 authored by Jerzy Kołosowski's avatar Jerzy Kołosowski

pdlib with fixed dlib added

parent 541fb789
DIST pdlib-1.0.tar.gz 486822 SHA256 baf77dbbd09047afd456ab335836f86ee80855b2ea6345b1079f6564700fa8b9 SHA512 1ff8c3b55d69321e1b1bcec6f8f41240138adfe0298269f857f5ee9655d783324f16a371f61b8eb97638d7014a724faa4c80e81b67b51c34e6203a309abeacae WHIRLPOOL 51a387b3a0ce603d9ce2eade0482a6b9b34237fc3cd87e4e92f03b811613e848c47face70cafb68761526f21a9381a874dc0c728c0c8122b972c128fec61aa80
EBUILD pdlib-1.0.ebuild 373 SHA256 156db7495ad90b2a21d55771b797830bf442178df06054f4bcf4e590ac28f229 SHA512 70d6f23e0c432195a5d9bc9919474b24b35e863b5ca5c9526353b839763ae6829fd2f34faff6a00f77567814d1371691f7b1aee6d817a86c11bfbe487959e385 WHIRLPOOL 16ab74b723f87a764f5aa0fe1762b4b24f7ab7b03644f8ce9f789a055aa8ac43a21ecdb4fac77c2c9a97c7fef158df873562d194659147c7b195fdd21ac6cc7e
MISC pdlib-1.0.ebuild.old 1353 SHA256 2abf607db1ca2cbee6c580335f1bc8c273c9791997ef07bbf451afac504c353f SHA512 c8b48ce604c0c6c5838eeea0acc072114eb1ee29a556f94e17a967f374c34c6ba73998b258fe2f0c0273d1436a347226afe61827ac97d13c48895509c174b1f2 WHIRLPOOL 6e27ee68a0723a9f3272b3c71af3267bd3af7da81c4e94696ee49455479af9384b376ca0fe14cefd1ce1995bdd48c450fdc54661956411aff81f143ce9e92893
EAPI="7"
PHP_EXT_NAME="pdlib"
USE_PHP="php7-2 php7-3 php7-4"
inherit php-ext-source-r3
DESCRIPTION="PHP bindings for dlib"
HOMEPAGE="https://github.com/goodspb/${PN}"
SRC_URI="https://github.com/goodspb/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc"
RDEPEND="sci-libs/dlib[X]"
DEPEND="${RDEPEND}"
RESTRICT="test"
EAPI="7"
PHP_EXT_NAME="pdlib"
USE_PHP="php5-6 php7-0 php7-1 php7-2 php7-3"
inherit cmake-utils php-ext-source-r3
DESCRIPTION="PHP bindings for libvirt"
HOMEPAGE="https://github.com/goodspb/${PN}"
SRC_URI="https://github.com/goodspb/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc"
RDEPEND="sci-libs/dlib"
DEPEND="${RDEPEND}"
RESTRICT="test"
src_prepare() {
php-ext-source-r3_src_prepare
local slot
for slot in $(php_get_slots); do
BUILD_DIR="${WORKDIR}/${slot}"
php_init_slot_env ${slot}
cmake-utils_src_prepare
done
}
src_configure() {
local slot
for slot in $(php_get_slots); do
BUILD_DIR="${WORKDIR}/${slot}"
php_init_slot_env ${slot} # Get $EXT_DIR for LIB_INSTALL_DIR
mycmakeargs=(
-DBUILD_SHARED_LIBS=ON
-DBUILD_TESTS=Off
-DPHP_INSTALL_DIR="${EXT_DIR#$EPREFIX}"
-DPHP_INCLUDE_DIR="/usr/$(get_libdir)/${slot}/include/php"
-DCMAKE_SKIP_RPATH="TRUE"
)
cmake-utils_src_configure
done;
}
src_compile() {
local slot
for slot in $(php_get_slots); do
BUILD_DIR="${WORKDIR}/${slot}"
php_init_slot_env ${slot}
cmake-utils_src_compile
done
}
src_install() {
cmake-utils_src_install
local slot
for slot in $(php_get_slots); do
BUILD_DIR="${WORKDIR}/${slot}"
php_init_slot_env ${slot}
php-ext-source-r3_createinifiles
done
}
DIST dlib-19.16.tar.gz 10411975 SHA256 ef92c4ea299e86d807c61dd53f55f8b1e56cc5fef630a0691beac612087f0111 SHA512 4e040ef88acff05e1a48e499b813c876b22ad3f989d076bdf19969d01036b62e51a0dff30b70046910ba31dfa1b1c2450a7fad41ae3142b7285ed74b8d584887 WHIRLPOOL 6e2512f94b6166fb68e069e560aaf2878684034528236d5284a4005be602250ea763ef721483ad27453624ef70a42f2d3768420bed57b38d48f155d9383ab883
EBUILD dlib-19.16-r1.ebuild 3000 SHA256 4fd8426aa80b57397194643818eb7599b6c992e8c39edf74533f4272d95d3d4d SHA512 a33337bc89e1c1d15d0a39feed2aeb2d1c456bff2752c4d236cbd7d16bfcc4db66aaedd748b40d02487efbe840816c41ce08040ad257610c4ec81317156aa79b WHIRLPOOL 52811127c112e66e3d920b9125e1afd31784049c0d3b242218e6005809683f9f869650237be0f5a0bad5c6492406567d31696ae46bcc0879b9102b64c73a9650
MISC metadata.xml 1002 SHA256 cfe9e4edb61981a6e856000c7f12fe84daf3e61a4aac9b77feac978ffd5f2610 SHA512 1977d192107b78b97d5336d3e5b2e43a7ea12ede631a864ce14aeab2f9d328526f815fab0d62ae1417842cdfe9e1e7c0494fcf79be535dbfc4e3ca9342447b5c WHIRLPOOL 1c2afbd671d9c08d07185083dcf84937c4d60830c86ef02d160af5de4b336bcc619b877d9c28f8ceb75651c544ca7fea60ff8e1c56ac0faf6a1a0161de364704
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{6,7} )
DISTUTILS_OPTIONAL=1
inherit cmake-utils cuda distutils-r1
DESCRIPTION="Numerical and networking C++ library"
HOMEPAGE="http://dlib.net/"
SRC_URI="https://github.com/davisking/dlib/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Boost-1.0"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="cblas cuda debug examples gif jpeg lapack mkl png python sqlite static-libs test X cpu_flags_x86_avx cpu_flags_x86_sse2 cpu_flags_x86_sse4_1"
RESTRICT="!test? ( test )"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
# doc needs a bunch of deps not in portage
RDEPEND="
cblas? ( virtual/cblas:= )
cuda? ( dev-libs/cudnn:= )
gif? ( media-libs/giflib:= )
jpeg? ( virtual/jpeg:0= )
lapack? ( virtual/lapack:= )
mkl? ( sci-libs/mkl:= )
png? ( media-libs/libpng:0= )
python? ( ${PYTHON_DEPS} )
sqlite? ( dev-db/sqlite:3= )
X? ( x11-libs/libX11:= )"
DEPEND="${RDEPEND}
python? (
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
)"
DOCS=( docs/README.txt )
src_prepare() {
use cuda && cuda_src_prepare
cmake-utils_src_prepare
use python && distutils-r1_src_prepare
}
python_configure_all() {
mydistutilsargs=(
--"$(usex gif)" DLIB_GIF_SUPPORT
--"$(usex jpeg)" DLIB_JPEG_SUPPORT
--"$(usex png)" DLIB_PNG_SUPPORT
--"$(usex X no yes)" DLIB_NO_GUI_SUPPORT
--"$(usex cblas)" DLIB_USE_BLAS
--"$(usex cuda)" DLIB_USE_CUDA
--"$(usex lapack)" DLIB_USE_LAPACK
--"$(usex cpu_flags_x86_avx)" USE_AVX_INSTRUCTIONS
--"$(usex cpu_flags_x86_sse2)" USE_SSE2_INSTRUCTIONS
--"$(usex cpu_flags_x86_sse4_1)" USE_SSE4_INSTRUCTIONS
)
}
src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS=ON
-DDLIB_ENABLE_ASSERTS="$(usex debug)"
-DDLIB_ENABLE_STACK_TRACE="$(usex debug)"
-DDLIB_GIF_SUPPORT="$(usex gif)"
-DDLIB_JPEG_SUPPORT="$(usex jpeg)"
-DDLIB_PNG_SUPPORT="$(usex png)"
-DDLIB_LINK_WITH_SQLITE3="$(usex sqlite)"
-DDLIB_NO_GUI_SUPPORT="$(usex X OFF ON)"
-DDLIB_USE_BLAS="$(usex cblas)"
-DDLIB_USE_CUDA="$(usex cuda)"
-DDLIB_USE_LAPACK="$(usex lapack)"
-DUSE_AVX_INSTRUCTIONS="$(usex cpu_flags_x86_avx)"
-DUSE_SSE2_INSTRUCTIONS="$(usex cpu_flags_x86_sse2)"
-DUSE_SSE4_INSTRUCTIONS="$(usex cpu_flags_x86_sse4_1)"
)
cmake-utils_src_configure
use python && distutils-r1_src_configure
}
src_compile() {
cmake-utils_src_compile
use python && distutils-r1_src_compile
}
python_test() {
esetup.py test
}
src_test() {
mkdir "${BUILD_DIR}"/dlib/test || die
pushd "${BUILD_DIR}"/dlib/test > /dev/null || die
cmake "${S}"/dlib/test && emake
./dtest --runall || die
popd > /dev/null || die
use python && distutils-r1_src_test
}
src_install() {
cmake-utils_src_install
use python && distutils-r1_src_install
use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.a
if use examples; then
dodoc -r examples
docompress -x /usr/share/doc/${PF}
fi
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>sci@gentoo.org</email>
<name>Gentoo Science Project</name>
</maintainer>
<longdescription lang="en">
dlib is a C++ library for developing portable applications dealing with
networking, threads, graphical interfaces, data structures, linear
algebra, machine learning, XML and text parsing, numerical
optimization, Bayesian nets, and numerous other tasks.
</longdescription>
<use>
<flag name="cblas">Build with CBLAS <pkg>virtual/cblas</pkg></flag>
<flag name="cuda">Enable support for CUDA for Deep Neural Networks (cuDNN) on GPU (experimental)</flag>
<flag name="mkl">Enable support for Intel FFT <pkg>sci-libs/mkl</pkg></flag>
<flag name="python">Enable support for Python API bindings</flag>
</use>
<upstream>
<remote-id type="github">davisking/dlib</remote-id>
</upstream>
</pkgmetadata>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment