Skip to content

Commit af113a9

Browse files
authored
Merge pull request #9 from srl295/cdemo-upd
ICU-13668 update all icu4c demos to work
2 parents fe212bc + 5a73430 commit af113a9

File tree

40 files changed

+2284
-520
lines changed

40 files changed

+2284
-520
lines changed

apputil/Makefile.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ CONFIG_H=demo_config.h
1717
LIBPREFIX=lib
1818
# srcdir must be set before this is included
1919
include $(top_builddir)/icuapps.mk
20-
include $(shell $(ICU_CONFIG) --incfile)
2120

2221
## Extra files to remove for 'make clean'
2322
CLEANFILES = *~ $(DEPS)

convexp/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ install-local: all-local install-target
4343
install-target: all-local
4444
$(MKINSTALLDIRS) $(BINDIR) $(DESTDIR)$(BINDIR)/data
4545
$(INSTALL) $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
46-
$(INSTALL) convexp-header.html $(DESTDIR)$(BINDIR)/data
46+
$(INSTALL) $(srcdir)/convexp-header.html $(DESTDIR)$(BINDIR)/data
4747

4848
dist-local:
4949

dumpdat/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ distclean distclean-local target-clean-local dist dist-local check \
5353
check-local
5454

5555
install-local: all-local
56-
$(MKINSTALLDIRS) $(BINDIR)
57-
$(INSTALL) $(TARGET) $(BINDIR)/$(TARGET)
56+
$(MKINSTALLDIRS) $(DESTDIR)$(BINDIR)
57+
$(INSTALL) $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
5858

5959
all-local: $(TARGET)
6060

icu-kube/docker.d/icu4c-demos/Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ RUN mkdir /home/build/build /home/build/src
3131
WORKDIR /home/build/build
3232
ADD . /home/build/src/
3333
ENV PREFIX=/home/build/icu
34-
RUN ~/src/configure --prefix=${PREFIX} ICU_CONFIG=$(which icu-config)
35-
RUN make all OBS= && make install OBS= DESTDIR=${PREFIX}
34+
# HACK: translitdemo is not out of source enabled
35+
RUN cp -R /home/build/src/translitdemo /home/build/build/translitdemo
36+
RUN ~/src/configure --prefix=${PREFIX} ICU_CONFIG=$(which icu-config) && \
37+
make all install OBS= DESTDIR=${PREFIX} CONTEXTPATH=/icu-bin/ ICU_COMMON_HEADERS=/home/build/src/icu-kube/icuheaders
3638
#make -k DEPS= clean && make -k DEPS= distclean && sudo apt-get purge -y git subversion python3 doxygen zip curl g++ && sudo apt-get -y autoremove && sudo apt-get clean -y
3739
#RUN make all
40+
RUN cp -R /home/build/src/translitdemo /home/build/icu/translitdemo
3841

3942
FROM alpine:latest as httpd
4043
USER root
@@ -47,6 +50,8 @@ COPY --from=build /home/build/icu /home/build/icu
4750
RUN if [ -d /home/build/icu/usr/local ]; then (cd /home/build/icu/usr/; ln -sv local/* .); fi; ls -l /home/build/icu/usr/bin/
4851
ENV LD_LIBRARY_PATH /home/build/icu/usr/lib
4952
EXPOSE 8080
53+
# this needs special treatment
54+
RUN cp -v /home/build/icu/usr/bin/data/collation.html /var/www/localhost/htdocs/ || true
5055
COPY icu-kube/lighttpd.conf /etc/lighttpd/lighttpd.conf
5156
COPY icu-kube/index.html /var/www/localhost/htdocs/index.html
5257
CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]

icu-kube/icuheaders/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# icuheaders
2+
3+
This contains copies of ICU header files that are used by some demos.
4+
TODO: change demos to not depend on these.

0 commit comments

Comments
 (0)