public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-lang/bas/files: bas-2.1-configure.patch bas-2.1-makefile.patch
@ 2011-02-02 17:54 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2011-02-02 17:54 UTC (permalink / raw
  To: gentoo-commits

ssuominen    11/02/02 17:54:35

  Added:                bas-2.1-configure.patch bas-2.1-makefile.patch
  Log:
  Initial commit wrt #353356 by Kevin McCarthy.
  
  (Portage version: 2.2.0_alpha19/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-lang/bas/files/bas-2.1-configure.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/bas/files/bas-2.1-configure.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/bas/files/bas-2.1-configure.patch?rev=1.1&content-type=text/plain

Index: bas-2.1-configure.patch
===================================================================
Remove hardcoded CFLAG -pipe
Remove hardcoded LDFLAG -g

Disable check for lrint to fix compile warning.

Patch by Kevin McCarthy <signals42@gmail.com>

--- configure.in
+++ configure.in
@@ -31,8 +31,8 @@
 AC_PROG_CC
 if test "$GCC" = yes
 then
-  CFLAGS="${CFLAGS} ${EXTRA_GCFLAGS}-pipe -Wall -Wno-unused -Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings -Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common"
-  LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}-g"
+  CFLAGS="${CFLAGS} ${EXTRA_GCFLAGS} -Wall -Wno-unused -Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings -Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common"
+  LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}"
 else
   CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}"
   LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS}"
@@ -65,7 +65,6 @@
         exit 1
 fi
 
-AC_CHECK_FUNCS(lrint)
 AC_CHECK_FUNCS(nanosleep)
 
 AC_CHECK_FUNCS(tgetent,have_tgetent=yes)



1.1                  dev-lang/bas/files/bas-2.1-makefile.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/bas/files/bas-2.1-makefile.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/bas/files/bas-2.1-makefile.patch?rev=1.1&content-type=text/plain

Index: bas-2.1-makefile.patch
===================================================================
Fixes makefile.in to respect DESTDIR during install
Fixes makefile.in to use $MAKE instead of 'make'
Fixes makefile.in to respect AR during libbas build

Patch by Kevin McCarthy <signals42@gmail.com>

--- Makefile.in
+++ Makefile.in
@@ -27,7 +27,7 @@
 libbas.a:	auto.o bas.o fs.o global.o token.o program.o \
 		str.o value.o var.o
 		rm -f $@
-		ar cq $@ auto.o bas.o fs.o global.o token.o program.o \
+		$(AR) cq $@ auto.o bas.o fs.o global.o token.o program.o \
 		str.o value.o var.o
 		@RANLIB@ libbas.a
 
@@ -35,7 +35,7 @@
 install-po-no:
 install-po-yes:	$(CATALOGS)
 		for cat in $(CATALOGS); do \
-		  dir=$(localedir)/`basename $$cat .mo`/LC_MESSAGES; \
+		  dir=$(DESTDIR)/$(localedir)/`basename $$cat .mo`/LC_MESSAGES; \
 		  [ -d $$dir ] || @INSTALL@ -m 755 -d $$dir; \
 		  @INSTALL@ -m 644 $$cat $$dir/bas.mo; \
 		done
@@ -44,14 +44,14 @@
 		for i in test/test*; do ./$$i || break; done
 
 install:	all
-		@INSTALL@ -m 755 -d @bindir@
-		@INSTALL@ bas @bindir@/bas
-		@INSTALL@ -m 755 -d @libdir@
-		@INSTALL@ -m 644 libbas.a @libdir@/libbas.a
-		@RANLIB@ @libdir@/libbas.a
-		@INSTALL@ -m 755 -d @mandir@/man1
-		@INSTALL@ -m 644 bas.1 @mandir@/man1/bas.1
-		make install-po
+		@INSTALL@ -m 755 -d $(DESTDIR)/@bindir@
+		@INSTALL@ bas $(DESTDIR)/@bindir@/bas
+		@INSTALL@ -m 755 -d $(DESTDIR)/@libdir@
+		@INSTALL@ -m 644 libbas.a $(DESTDIR)/@libdir@/libbas.a
+		@RANLIB@ $(DESTDIR)/@libdir@/libbas.a
+		@INSTALL@ -m 755 -d $(DESTDIR)/@mandir@/man1
+		@INSTALL@ -m 644 bas.1 $(DESTDIR)/@mandir@/man1/bas.1
+		$(MAKE) install-po
 
 .c.o:
 		$(CC) -c $(CPPFLAGS) $(CFLAGS) $<






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-02 17:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-02 17:54 [gentoo-commits] gentoo-x86 commit in dev-lang/bas/files: bas-2.1-configure.patch bas-2.1-makefile.patch Samuli Suominen (ssuominen)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox