2024-08-16 16:47:48 +08:00

32 lines
654 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit toolchain-funcs
DESCRIPTION="A simple command line calendar for Chinese lunar"
HOMEPAGE="http://ccal.chinesebay.com/ccal/ccal.htm"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~mips x86"
IUSE="pdf"
SRC_URI="http://ccal.chinesebay.com/${PN}/${P}.tar.gz"
RDEPEND="
pdf? ( app-text/ghostscript-gpl )"
PATCHES=( "${FILESDIR}/${PN}-cflags.patch" )
src_prepare() {
default
sed -i "s/^CXX=.*$/CXX=$(tc-getCXX)/" Makefile || die
}
src_install() {
use pdf && ( dobin ccalpdf; doman ccalpdf.1 )
dobin ccal
doman ccal.1
}