From: "Peter Kadau" <peter.kadau@web.de>
To: gentoo-dev@cvs.gentoo.org
Subject: [gentoo-dev] new pccts ebuild
Date: Fri Aug 3 09:45:03 2001 [thread overview]
Message-ID: <200108031544.f73FiO620361@mailgate3.cinetic.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 893 bytes --]
hi !
here is a new pccts ebuild.
i had to patch a file (genmk.c) in order to get moderate compliance.
rationale (sort of) is in the ebuild script.
didn't have the time yet to test some pccts-project,
so _please_ report any troubles in that respect.
it worked for me - at least, cdrdao compiles without error - but it doesn't
really depend on the genmk tool...
have a look at it and correct me, please.
thanks and ciao
peter
-----------------------------------------------------------------
peter kadau
email: peter.kadau@web.de
open source is no religion - it just produces the most reliable software
-----------------------------------------------------------------
_______________________________________________________________________
1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de
IhrName@web.de, 8MB Speicher, Verschluesselung - http://freemail.web.de
[-- Attachment #2: pccts-1.33.24-r1-gentoo.diff --]
[-- Type: application/octet-stream, Size: 1850 bytes --]
--- pccts/support/genmk/genmk.c Fri Aug 3 17:12:51 2001
+++ pccts/support/genmk/genmk-gentoo.c Fri Aug 3 17:12:14 2001
@@ -7,6 +7,11 @@
* U of MN
*/
+/* modified 20010803 by Peter Kadau
+ * for better fhs-compliance
+ * i.e. from "none" to "hmmm soso" ;-)
+ */
+
#include <stdio.h>
#include <string.h>
#include "pcctscfg.h" /* be sensitive to what ANTLR/DLG call the files */
@@ -65,7 +70,7 @@
static int nondef_comp = 0; /* 1=compiler is non default */
static char *compilerCCC="CC";
static char *compilerCC="cc";
-static char *pccts_path="/usr/local/pccts";
+static char *pccts_path="/usr/include/pccts";
#ifdef __STDC__
void help(void);
@@ -356,7 +361,7 @@
{ "-cfiles",1,pCFiles, "Additional files in C or C++ to compile"},
{ "-sor",0,pSor, "Start of sorcerer group"},
{ "-pccts_path",1,ppccts_path,
- "Path for $PCCTS directory (default is /usr/local/pccts)"},
+ "Path for $PCCTS directory (default is /usr/include/pccts)"},
{ "-compiler",1,pCompiler,
"Default compiler (default is CC/cc)"},
{ "*", 0,pFile, "" }, /* anything else is a file */
@@ -495,13 +500,13 @@
else printf("SCAN = %s%s\n", DIR(), dlg_class);
printf("PCCTS = %s\n",pccts_path);
- printf("ANTLR_H = $(PCCTS)%sh\n", DirectorySymbol);
+ printf("ANTLR_H = $(PCCTS)\n");
if (num_sors>0) {
- printf("SOR_H = $(PCCTS)%ssorcerer%sh\n", DirectorySymbol, DirectorySymbol);
+ printf("SOR_H = $(PCCTS)%ssorcerer\n", DirectorySymbol);
printf("SOR_LIB = $(PCCTS)%ssorcerer%slib\n",
DirectorySymbol, DirectorySymbol);
}
- printf("BIN = $(PCCTS)%sbin\n", DirectorySymbol);
+ printf("BIN = %susr%sbin\n", DirectorySymbol, DirectorySymbol);
printf("ANTLR = $(BIN)%santlr\n", DirectorySymbol);
printf("DLG = $(BIN)%sdlg\n", DirectorySymbol);
if (num_sors>0) printf("SOR = $(BIN)%ssor\n", DirectorySymbol);
[-- Attachment #3: pccts-1.33.24-r1.ebuild --]
[-- Type: application/octet-stream, Size: 1625 bytes --]
# pccts-1.33.24-r1.ebuild
# Distributed under the terms of the GNU General Public License, v2 or later
# based on pccts-1.33.24.ebuild, written by:
# Frédéric Brin <duckx@libertysurf.fr>, Jonas Berlin <jonas@berlin.vg>
#
# Author: Peter Kadau <peter.kadau@web.de>
# $HEADER$
A="pccts133mr24.zip"
S=${WORKDIR}/pccts
DESCRIPTION="An embedded C/C++ parser generator"
SRC_URI="http://www.polhode.com/${A}"
HOMEPAGE="http://www.polhode.com/"
DEPEND="app-arch/unzip"
RDEPEND=""
src_unpack() {
unpack ${A}
patch -p0 <${FILESDIR}/${PF}-gentoo.diff
}
src_compile() {
try make MAKE="make ${MAKEOPTS}" COPT="${CFLAGS}"
}
src_install() {
# main binaries
exeinto /usr/bin
doexe bin/{antlr,dlg,genmk,sor}
# .c and .cpp files go into /usr/include/pccts also,
# because genmk looks for them for being included in output-files
# (which are c/c++) generated from grammar-files
# right now i include _everything_ just to make sure
# it doesn't break pccts-based projects
#
# if i dive further into the details of genmk.c
# it should be possible to put that stuff into /usr/share/pccts
#
# the M$ and MAC specific stuff gets _not_ included
#
# main includes
insinto /usr/include/pccts
doins h/*.{h,c,cpp}
# sorcerer includes
insinto /usr/include/pccts/sorcerer/include
doins sorcerer/h/*.{h,c,cpp}
# sorcerer libraries
insinto /usr/include/pccts/sorcerer/lib
doins sorcerer/lib/*.{h,c,cpp}
# documentation
# leaving out the M$ and MAC stuff
dodoc CHANGES* KNOWN_PROBLEMS* README RIGHTS history.txt history.ps
dodoc sorcerer/README sorcerer/UPDATES
# manual pages
doman dlg/dlg.1 antlr/antlr.1
}
next reply other threads:[~2001-08-03 15:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-03 9:45 Peter Kadau [this message]
2001-08-03 13:20 ` [gentoo-dev] new pccts ebuild Dan Armak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200108031544.f73FiO620361@mailgate3.cinetic.de \
--to=peter.kadau@web.de \
--cc=gentoo-dev@cvs.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox