@@ -0,0 +1,47 @@
1+{ stdenv, fetchurl, bobcat, gcc49, icmake, yodl }:
2+
3+let version = "2.02.00"; in
4+stdenv.mkDerivation rec {
5+ name = "flexc++-${version}";
6+
7+ src = fetchurl {
8+ sha256 = "0mz5d0axr4c8rrmn4iw7b5llmf6f3g9cnjzzz3kw02mfzwll79rz";
9+ url = "mirror://sourceforge/flexcpp/${version}/flexc++_${version}.orig.tar.gz";
10+ };
11+
12+ meta = with stdenv.lib; {
13+ inherit version;
14+ description = "";
15+ longDescription = ''
16+ Flexc++ was designed after `flex'. Flexc++ offers a cleaner class design
17+ and requires simpler specification files than offered by flex's C++
18+ option.
19+ '';
20+ homepage = http://flexcpp.sourceforge.net/;
21+ downloadPage = http://sourceforge.net/projects/flexcpp/files/;
22+ license = with licenses; gpl3;
23+ platforms = with platforms; linux;
24+ maintainers = with maintainers; [ nckx ];
25+ };
26+
27+ buildInputs = [ bobcat gcc49 icmake yodl ];
28+
29+ postPatch = ''
30+ substituteInPlace INSTALL.im --replace /usr $out
31+ patchShebangs ./build
32+ '';
33+
34+ buildPhase = ''
35+ ./build man
36+ ./build manual
37+ ./build program
38+ '';
39+
40+ installPhase = ''
41+ ./build install man
42+ ./build install manual
43+ ./build install program
44+ ./build install skel
45+ ./build install std
46+ '';
47+}