Skip to content

Commit 2358dde

Browse files
committed
Move flex to git snapshots
1 parent 0488a44 commit 2358dde

File tree

7 files changed

+95
-10
lines changed

7 files changed

+95
-10
lines changed

LICENSES/BSD-3-Clause-flex.txt

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Flex carries the copyright used for BSD software, slightly modified
2+
because it originated at the Lawrence Berkeley (not Livermore!) Laboratory,
3+
which operates under a contract with the Department of Energy:
4+
5+
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007 The Flex Project.
6+
7+
Copyright (c) 1990, 1997 The Regents of the University of California.
8+
All rights reserved.
9+
10+
This code is derived from software contributed to Berkeley by
11+
Vern Paxson.
12+
13+
The United States Government has rights in this work pursuant
14+
to contract no. DE-AC03-76SF00098 between the United States
15+
Department of Energy and the University of California.
16+
17+
Redistribution and use in source and binary forms, with or without
18+
modification, are permitted provided that the following conditions
19+
are met:
20+
21+
1. Redistributions of source code must retain the above copyright
22+
notice, this list of conditions and the following disclaimer.
23+
2. Redistributions in binary form must reproduce the above copyright
24+
notice, this list of conditions and the following disclaimer in the
25+
documentation and/or other materials provided with the distribution.
26+
27+
Neither the name of the University nor the names of its contributors
28+
may be used to endorse or promote products derived from this software
29+
without specific prior written permission.
30+
31+
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
32+
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
33+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
34+
PURPOSE.
35+
36+
This basically says "do whatever you please with this software except
37+
remove this notice or take advantage of the University's (or the flex
38+
authors') name".
39+
40+
Note that the "flex.skl" scanner skeleton carries no copyright notice.
41+
You are free to do whatever you please with scanners generated using flex;
42+
for them, you are not even bound by the above copyright.

steps/SHA256SUMS.pkgs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ bda6afcd3a390a34a57443269a4857ccc470129f7a557981778c145fd841cbd1 dist-3.5-236_0
4646
0061d240f9bb2bb534db7003ddcc4eae9981954ad72e8f41ff1d76dc449ebd37 file-5.44_0.tar.bz2
4747
eec07e0d710ed3dd8d0ba6a1ec6ca9f1fa3a611bbb225195435679175317bf90 findutils-4.2.33_0.tar.bz2
4848
80798628ccb38521f42e1ca1abe4f0244e4b283e6f662cd354ab70e61a9b4675 flex-2.5.11_0.tar.bz2
49-
b3a8d59229289ca5a1de6a24c9c828d2847144f6662e0d5b7f41e7ff6e57abaa flex-2.5.33_0.tar.bz2
49+
62b4ba8e73daf1f4ac4fc1f90e99394e40d7c03dce9fed8539dbc01d024c62e8 flex-2.5.33_0.tar.bz2
5050
e10060b55e2378a065cf8590cae17400c8befc6b3bb0cbbb7093f1b9f46ec4cc flex-2.6.4_0.tar.bz2
5151
5619cf9a893902491a9d8a8f8da4d39efb3606d7d0a72cb4aaa9d1ff798b5495 gawk-3.0.4_0.tar.bz2
5252
62e90abe883f6ccd679adf42d00c2c18a9809bbab599411c81b6c4ac4d446452 gawk-5.3.0_0.tar.bz2

steps/flex-2.5.11/pass1.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ src_prepare() {
88
default
99

1010
touch config.h
11-
rm parse.c parse.h scan.c skel.c
1211
}
1312

1413
src_compile() {

steps/flex-2.5.11/sources

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
http://ftp-tel.sjtu.edu.cn/sites/ftp.openpkg.org/sources/DST/flex/flex-2.5.11.tar.gz bc79b890f35ca38d66ff89a6e3758226131e51ccbd10ef78d5ff150b7bd73689
1+
git://github.com/westes/flex~d160f0247ba1611aa59d28f027d6292ba24abb50 https://github.com/westes/flex/archive/d160f0247ba1611aa59d28f027d6292ba24abb50.tar.gz 68aa10c473b6010ffad680cada09fc4eec6b3cc6e415cc2339e5fc2385ccc142

steps/flex-2.5.33/pass1.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ src_prepare() {
66
default
77

88
AUTOPOINT=true AUTOMAKE=automake-1.15 ACLOCAL=aclocal-1.15 autoreconf-2.69 -fi
9-
10-
# Remove pregenerated files
11-
rm parse.c parse.h scan.c
12-
13-
# Remove pregenerated .info
14-
rm doc/flex.info
159
}
1610

1711
src_configure() {
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
Disable things we can't regenerate for varied reasons.
2+
3+
SPDX-FileCopyrightText: 2025 fosslinux <[email protected]>
4+
5+
SPDX-License-Identifier: BSD-3-Clause-flex
6+
7+
diff --color -ru configure.in
8+
--- flex-2.5.33/configure.in 2024-12-28 11:29:45.497750429 +1100
9+
+++ flex-2.5.33/configure.in 2024-12-28 12:37:00.190457545 +1100
10+
@@ -31,9 +31,6 @@
11+
12+
dnl checks for programs
13+
14+
-AM_GNU_GETTEXT([external])
15+
-AM_GNU_GETTEXT_VERSION(0.12)
16+
-
17+
AC_PROG_YACC
18+
AM_PROG_LEX
19+
AC_PROG_CC
20+
@@ -97,12 +94,10 @@
21+
flex.spec
22+
Makefile
23+
doc/Makefile
24+
-website/Makefile
25+
examples/Makefile
26+
examples/fastwc/Makefile
27+
examples/manual/Makefile
28+
m4/Makefile
29+
-po/Makefile.in
30+
tools/Makefile
31+
tests/Makefile
32+
tests/TEMPLATE/Makefile
33+
diff --color -ru Makefile.am
34+
--- flex-2.5.33/Makefile.am 2024-12-28 11:29:45.496750429 +1100
35+
+++ flex-2.5.33/Makefile.am 2024-12-28 13:32:54.945214018 +1100
36+
@@ -135,13 +135,12 @@
37+
doc \
38+
m4 \
39+
examples \
40+
- po \
41+
tools \
42+
tests
43+
44+
localedir = $(datadir)/locale
45+
AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -I@includedir@ -I$(top_srcdir)/intl
46+
-LIBS = @LIBINTL@ @LIBS@
47+
+LIBS = @LIBS@
48+
49+
skel.c: flex.skl mkskel.sh flexint.h tables_shared.h
50+
sed 's/m4_/m4postproc_/g; s/m4preproc_/m4_/g' $(srcdir)/flex.skl | $(m4) -P -DFLEX_MAJOR_VERSION=`echo $(VERSION)|cut -f 1 -d .` -DFLEX_MINOR_VERSION=`echo $(VERSION)|cut -f 2 -d .` -DFLEX_SUBMINOR_VERSION=`echo $(VERSION)|cut -f 3 -d .` | sed 's/m4postproc_/m4_/g' | $(SHELL) $(srcdir)/mkskel.sh >skel.c

steps/flex-2.5.33/sources

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
http://ftp-tel.sjtu.edu.cn/sites/ftp.openpkg.org/sources/DST/flex/flex-2.5.33.tar.gz c40385e142989c91989413f3c5a31282b2ffdca16b69cd3ecfde537b8a474921
1+
git://github.com/westes/flex~e6f147b7a5f2ec2dc862dc9d30b3734b9555a1ea https://github.com/westes/flex/archive/e6f147b7a5f2ec2dc862dc9d30b3734b9555a1ea.tar.gz baec69069ff58b7cdbe0103ffc16f29d4857428c29efcdf685c574d8300fd838

0 commit comments

Comments
 (0)