@@ -0,0 +1,38 @@
1+{ stdenv, fetchurl, gcc49, icmake, libmilter, libX11, openssl, readline
2+, utillinux, yodl }:
3+
4+let version = "3.25.01"; in
5+stdenv.mkDerivation rec {
6+ name = "bobcat-${version}";
7+
8+ src = fetchurl {
9+ sha256 = "07qc10hnjpmc2wq14kw01vfww5i049y0jmdvkiiafw33ffy0wdca";
10+ url = "mirror://sourceforge/bobcat/bobcat/${version}/bobcat_${version}.orig.tar.gz";
11+ };
12+
13+ meta = with stdenv.lib; {
14+ inherit version;
15+ description = "Brokken's Own Base Classes And Templates";
16+ downloadPage = http://sourceforge.net/projects/bobcat/files/;
17+ license = with licenses; gpl3;
18+ platforms = with platforms; linux;
19+ maintainers = with maintainers; [ nckx ];
20+ };
21+
22+ buildInputs = [ gcc49 icmake libmilter libX11 openssl readline utillinux
23+ yodl ];
24+
25+ postPatch = ''
26+ substituteInPlace INSTALL.im --replace /usr $out
27+ patchShebangs ./build
28+ '';
29+
30+ buildPhase = ''
31+ ./build libraries all
32+ ./build man
33+ '';
34+
35+ installPhase = ''
36+ ./build install
37+ '';
38+}