Skip to content

Commit

Permalink
ebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Aug 23, 2021
1 parent 2439f40 commit 24d835d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions deepbooru-ncnn-1.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit cmake

DESCRIPTION="deepbooru tagger using ncnn"
HOMEPAGE="https://github.com/installgentoo/deepbooru-ncnn"
SRC_URI="https://github.com/installgentoo/deepbooru-ncnn/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="dev-libs/ncnn
media-gfx/imagemagick"
DEPEND="${RDEPEND}"

src_prepare() {
CMAKE_USE_DIR="${S}"
cmake_src_prepare

# Update all paths to match installation for models.
sed "s/string model = \"model-dd\"/string model = \"${EPREFIX}\/usr\/share\/${PN}\"/" -i dd_main.cxx || die
}

src_configure() {
cmake_src_configure
}

src_install() {
dobin "${BUILD_DIR}"/dd-ncnn
insinto /usr/share/${PN}
doins -r model-dd/.
}

0 comments on commit 24d835d

Please sign in to comment.