www-apps/linkace - 1.14.1 (php-overlay)

Search

Package Information

Description:
LinkAce is a bookmark archive.
Homepage:
https://github.com/kovah/linkace
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.14.1 8 ~amd64
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit webapp

DESCRIPTION="LinkAce is a bookmark archive."
HOMEPAGE="https://github.com/kovah/linkace"
SRC_URI="https://github.com/Kovah/LinkAce/releases/download/v${PV}/linkace-v${PV}.zip -> ${PN}-${PV}.zip"

LICENSE="MIT"
KEYWORDS="~amd64"
IUSE="+mysql sqlite"
REQUIRED_USE="|| ( mysql sqlite )"

BDEPEND="app-arch/unzip"
RDEPEND="
	>=dev-lang/php-8.0[cli,fileinfo,ftp,pdo]
	mysql? ( virtual/mysql )
	sqlite? ( dev-db/sqlite )
	virtual/httpd-php
"

S="${WORKDIR}"

src_prepare() {

	default

	if [ -f "${S}/.dockerignore" ]; then
		rm "${S}/.dockerignore"
	fi

	if [ -f "${S}/docker-compose.yml" ]; then
		rm "${S}/docker-compose.yml"
	fi

	if [ -f "${S}/docker-compose.production.yml" ]; then
		rm "${S}/docker-compose.production.yml"
	fi

	if [ -f "${S}/docker-compose.production-simple.yml" ]; then
		rm "${S}/docker-compose.production-simple.yml"
	fi

}

src_install() {

	webapp_src_preinst

	insinto "${MY_HTDOCSDIR}"

	doins -r .

	webapp_serverowned -R "${MY_HTDOCSDIR}"/storage
	webapp_serverowned -R "${MY_HTDOCSDIR}"/bootstrap/cache

	webapp_src_install

}

pkg_postinst() {
	elog "Don't forget to update the application by running 'php artisan migrate'."
	webapp_pkg_postinst
}

USE Flags

mysql
Default: Enabled (+)

Dependencies

RDEPEND

	>=dev-lang/php-8.0[cli,fileinfo,ftp,pdo]
	mysql? ( virtual/mysql )
	sqlite? ( dev-db/sqlite )
	virtual/httpd-php

BDEPEND

app-arch/unzip

Manifest for 1.14.1

Type File Size Source URLs
DIST linkace-1.14.1.zip 16312117 bytes https://github.com/Kovah/LinkAce/releases/download/v1.14.1/linkace-v1.14.1.zip