-
Notifications
You must be signed in to change notification settings - Fork 1
/
pgvector-0.5.0.ebuild
40 lines (29 loc) · 774 Bytes
/
pgvector-0.5.0.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
POSTGRES_COMPAT=( 14 15 16 )
POSTGRES_USEDEP="server"
inherit postgres-multi
DESCRIPTION="Open-source vector similarity search for Postgres "
HOMEPAGE="https://github.com/pgvector/pgvector"
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Postgres"
SLOT="0"
KEYWORDS="~amd64"
IUSE="static-libs"
REQUIRED_USE="${POSTGRES_REQ_USE}"
DEPEND="
${POSTGRES_DEP}
"
RDEPEND="${DEPEND}"
src_prepare() {
eapply_user
postgres-multi_src_prepare
}
src_compile() {
postgres-multi_foreach emake
}
src_install() {
postgres-multi_foreach emake DESTDIR="${D}" install
use static-libs || find "${ED}" -name '*.a' -delete
}