aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/mandoc.az
blob: 01f577ef656f080b39c58ef2518d4926fe605417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package mandoc {
	description = "unix manpage compiler";
	website = "https://mandoc.bsd.lv";
	anitya = 70874;

	version# = "1.14.6";
	source = remoteTar {
		url = "https://mandoc.bsd.lv/snapshots/mandoc-"+version+".tar.gz";
		checksum = "wYDRywggIL1cd82yt09-bgvBbZ0IAYtlF4yK3_jq3bz9b6mjWuiXBsxUxZQiD2lM";
		compress = gzip;
	};

	enter = true;
	writable = true;
	chmod = true;
	exec = make {
		chdir = false;
		preConfigure = `
cat > configure.local << EOF
PREFIX=`+prefix+`
UTF8_LOCALE=C.UTF-8
EOF
`;
		preMake = `
cat >> Makefile.local << EOF
CC		= ${CC:-clang}
EOF
`;
		check = [ "regress" ];
	};

	inputs = [ zlib ];

	tools = [
		perl,
		diffutils,
	];
}