Greetings. This tool is a command-line parser and command interpreter generator used by all ksb tools (http://www.npcguild.org/software/pundits/). You write your code in a meta-language which mkcmd translates into C source. It automatically generates a manual page and a help message for -h. Hundreds of example templates are included. It's a requirement for some other ebuilds I'm going to submit soon. I suggest this ebuild go in dev-util/mkcmd. It depends on msrc0, previously submitted.
Created attachment 41546 [details] mkcmd-8.14.ebuild
Created attachment 41547 [details, diff] 8.14-bin-makefile.patch Fix paths, honor make.conf CFLAGS.
Created attachment 41548 [details, diff] 8.14-bin-man.patch Fix path.
Created attachment 41549 [details, diff] 8.14-errno.patch #include <errno.h>
Created attachment 41550 [details, diff] 8.14-lib-makefile.patch Fix paths.
Created attachment 41556 [details, diff] 8.14-lib-man.patch Fix paths.
Created attachment 41557 [details, diff] 8.14-ubinst.patch Don't cmp against a directory.
Created attachment 41558 [details, diff] 8.14-bin-man.patch Use a real path instead of %%PREFIX%%.
>>> Source unpacked. cc -O2 -march=athlon-xp -pipe -DLINUX -c -o main.o main.c mkcmd.m:47: error: conflicting types for 'malloc' mkcmd.m:47: error: conflicting types for 'malloc' mkcmd.m:47: error: conflicting types for 'calloc' mkcmd.m:47: error: conflicting types for 'calloc' mkcmd.m:47: error: conflicting types for 'realloc' /usr/include/stdlib.h:595: error: previous declaration of 'realloc' was here mkcmd.m:47: error: conflicting types for 'realloc' /usr/include/stdlib.h:595: error: previous declaration of 'realloc' was here make: *** [main.o] Error 1
Created attachment 57966 [details, diff] 8.14-malloc.patch I couldn't reproduce your error, but 8.14-malloc.patch might help.
(this is an automated message based on filtering criteria that matched this bug) 'EBUILD' is in the KEYWORDS which should mean that there is a ebuild attached to this bug. This bug is assigned to maintainer-wanted which means that it is not in the main tree. Hello, The Gentoo Team would like to firstly thank you for your ebuild submission. We also apologize for not being able to accommodate you in a timely manner. There are simply too many new packages. Allow me to use this opportunity to introduce you to Gentoo Sunrise. The sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to commit to and all users can have ebuilds reviewed by Gentoo devs for entry into the overlay. So, the sunrise team is suggesting that you look into this and submit your ebuild to the overlay where even *you* can commit to. =) Because this is a mass message, we are also asking you to be patient with us. We anticipate a large number of requests in a short time. Thanks, On behalf of the Gentoo Sunrise Team, Jeremy. [1]: http://www.gentoo.org/proj/en/sunrise/ [2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq