40 lines
750 B
Bash
40 lines
750 B
Bash
# Copyright 2026 Shin'ya Minazuki
|
|
|
|
EAPI=8
|
|
|
|
inherit go-module
|
|
|
|
DESCRIPTION="The fastest static site generator"
|
|
HOMEPAGE="https://projects.laidback.moe/aya"
|
|
|
|
if [[ ${PV} = 9999* ]]; then
|
|
EGIT_REPO_URI="https://git.laidback.moe/shinyoukai/aya"
|
|
inherit git-r3
|
|
else
|
|
SRC_URI="
|
|
https://mirror.chaotic.ninja/software/aya-${PV}.tar.gz
|
|
https://mirror.chaotic.ninja/software/aya-vendor.tar.gz
|
|
"
|
|
fi
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
# Other architectures have not been tested
|
|
# This project is mainly developed on x86(-64)
|
|
KEYWORDS="amd64 x86"
|
|
|
|
IUSE="lite"
|
|
S="${WORKDIR}/${PN}"
|
|
|
|
src_compile() {
|
|
if use lite; then
|
|
emake build-lite
|
|
else
|
|
emake build
|
|
fi
|
|
}
|
|
|
|
src_install() {
|
|
emake install DESTDIR="${D}" PREFIX="${EPREFIX}/usr" MANDIR="${EPREFIX}/usr/share/man"
|
|
}
|