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