mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
- Update to 0.8.0
- Switch to USE_GITHUB - Switch to USES=cmake - Drop unneeded patches - Add DOCS option - Update comment and WWW in pkg-descr - Take maintainership Changelog: https://github.com/arabeyes-org/ITL/releases/tag/v0.8.0 PR: 221766 Submitted by: cpm
This commit is contained in:
parent
13bb6f87c0
commit
bfe7fad3f4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=455868
@ -2,26 +2,30 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= libitl
|
||||
PORTVERSION= 0.7.0
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 0.8.0
|
||||
DISTVERSIONPREFIX= v
|
||||
CATEGORIES= arabic
|
||||
MASTER_SITES= SF/arabeyes/ITL%20Library%20%28${PORTNAME}%29/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= cpm@FreeBSD.org
|
||||
COMMENT= API abstraction to common Islamic calculations
|
||||
|
||||
LICENSE= LGPL21
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_LDCONFIG= ${PREFIX}/lib/itl
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
USES= cmake pkgconfig
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
post-install:
|
||||
.for f in libitl.so libitl.so.0
|
||||
${RM} ${STAGEDIR}${PREFIX}/lib/itl/$f
|
||||
${LN} -s libitl.so.0.0.7 ${STAGEDIR}${PREFIX}/lib/itl/$f
|
||||
.endfor
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/itl/libitl.so
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= arabeyes-org
|
||||
GH_PROJECT= ITL
|
||||
GH_TAGNAME= f8f41cc
|
||||
|
||||
PORTDOCS= *
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-install-DOCS-on:
|
||||
(cd ${WRKSRC}/new_method/references && ${COPYTREE_SHARE} \
|
||||
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,3 @@
|
||||
SHA256 (libitl-0.7.0.tar.gz) = 351a280bebe69b0aa4681c32288a48574407ac3e3a8f273c2be330ac20edce00
|
||||
SIZE (libitl-0.7.0.tar.gz) = 135700
|
||||
TIMESTAMP = 1509667607
|
||||
SHA256 (arabeyes-org-ITL-v0.8.0-f8f41cc_GH0.tar.gz) = cf113a7b963469e2cf56d3b9e9d7cae18c79ac55ab1faa8b4464aad3dc1a4234
|
||||
SIZE (arabeyes-org-ITL-v0.8.0-f8f41cc_GH0.tar.gz) = 1233648
|
||||
|
24
arabic/libitl/files/patch-CMakeLists.txt
Normal file
24
arabic/libitl/files/patch-CMakeLists.txt
Normal file
@ -0,0 +1,24 @@
|
||||
--- CMakeLists.txt.orig 2017-10-31 20:26:09 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -12,7 +12,7 @@ set(LIBRARY_VERSION_FULL "${LIBRARY_VERS
|
||||
message( "Installation target directory is: " ${CMAKE_INSTALL_PREFIX} )
|
||||
message( "To override this value, use 'make -DCMAKE_INSTALL_PREFIX=$DIR'" )
|
||||
|
||||
-set( COMPILE_FLAGS "-ansi -pedantic -Wall -O2" )
|
||||
+set( COMPILE_FLAGS "-pedantic -Wall -O2" )
|
||||
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMPILE_FLAGS}" )
|
||||
|
||||
# Specify header files
|
||||
@@ -43,9 +43,9 @@ set(VERSION "${LIBRARY_VERSION_FULL}")
|
||||
configure_file("libitl.pc.in" "libitl.pc" @ONLY)
|
||||
|
||||
install( FILES ${HEADER_FILES} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/itl" )
|
||||
-install( TARGETS itl DESTINATION ${CMAKE_INSTALL_LIBDIR} )
|
||||
-install( TARGETS itlShared DESTINATION ${CMAKE_INSTALL_LIBDIR} )
|
||||
-install(FILES "libitl.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig/)
|
||||
+install( TARGETS itl DESTINATION ${CMAKE_INSTALL_LIBDIR}/itl )
|
||||
+install( TARGETS itlShared DESTINATION ${CMAKE_INSTALL_LIBDIR}/itl )
|
||||
+install(FILES "libitl.pc" DESTINATION ${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig/)
|
||||
|
||||
# Specify executables
|
||||
add_executable( demo_hijri hijri/demo_hijri.c )
|
@ -1,24 +0,0 @@
|
||||
--- Makefile.in.orig 2009-03-17 16:26:28 UTC
|
||||
+++ Makefile.in
|
||||
@@ -83,15 +83,15 @@ debinstall: components
|
||||
|
||||
install: build/libitl.so build/libitl.a
|
||||
@echo "==> Installing libitl library..."
|
||||
- test -d $(PREFIX)/lib/itl \
|
||||
- || install -d $(PREFIX)/lib/itl \
|
||||
+ test -d $(DESTDIR)$(PREFIX)/lib/itl \
|
||||
+ || install -d $(DESTDIR)$(PREFIX)/lib/itl \
|
||||
|| exit 1;
|
||||
- install build/$(FULLNAME) $(PREFIX)/lib/itl
|
||||
- install build/libitl.a $(PREFIX)/lib/itl
|
||||
+ install build/$(FULLNAME) $(DESTDIR)$(PREFIX)/lib/itl
|
||||
+ install build/libitl.a $(DESTDIR)$(PREFIX)/lib/itl
|
||||
# Using cp -P as cp --no-dereference is not POSIX
|
||||
# or use --preserve=link instead.
|
||||
- cp -P build/$(SONAME) $(PREFIX)/lib/itl
|
||||
- cp -P build/libitl.so $(PREFIX)/lib/itl
|
||||
+ cp -P build/$(SONAME) $(DESTDIR)$(PREFIX)/lib/itl
|
||||
+ cp -P build/libitl.so $(DESTDIR)$(PREFIX)/lib/itl
|
||||
@echo "==> Installing ITL components..."
|
||||
for i in $(COMPONENTS); do \
|
||||
$(MAKE) -C $$i install || exit 1; \
|
@ -1,16 +0,0 @@
|
||||
--- hijri/Makefile.orig 2006-09-21 16:34:31 UTC
|
||||
+++ hijri/Makefile
|
||||
@@ -10,10 +10,10 @@ demo_hijri:
|
||||
|
||||
install: all
|
||||
@echo "==> Installing hijri component..."
|
||||
- test -d $(PREFIX)/include/itl \
|
||||
- || install -d $(PREFIX)/include/itl \
|
||||
+ test -d $(DESTDIR)$(PREFIX)/include/itl \
|
||||
+ || install -d $(DESTDIR)$(PREFIX)/include/itl \
|
||||
|| exit 1;
|
||||
- install src/hijri.h $(PREFIX)/include/itl
|
||||
+ install src/hijri.h $(DESTDIR)$(PREFIX)/include/itl
|
||||
|
||||
uninstall:
|
||||
@echo "==> Uninstalling hijri component..."
|
@ -1,16 +0,0 @@
|
||||
--- prayertime/Makefile.orig 2006-09-21 16:37:51 UTC
|
||||
+++ prayertime/Makefile
|
||||
@@ -10,10 +10,10 @@ demo_prayer:
|
||||
|
||||
install: all
|
||||
@echo "==> Installing prayertime component..."
|
||||
- test -d $(PREFIX)/include/itl \
|
||||
- || install $(PREFIX)/include/itl \
|
||||
+ test -d $(DESTDIR)$(PREFIX)/include/itl \
|
||||
+ || install $(DESTDIR)$(PREFIX)/include/itl \
|
||||
|| exit 1;
|
||||
- install src/prayer.h $(PREFIX)/include/itl
|
||||
+ install src/prayer.h $(DESTDIR)$(PREFIX)/include/itl
|
||||
|
||||
uninstall:
|
||||
@echo "==> Uninstalling prayertime component..."
|
@ -1,5 +1,10 @@
|
||||
The Islamic Tools and Libraries (ITL) is a project to provide a
|
||||
plethora of useful Islamic tools and applications as well as a
|
||||
comprehensive feature-full Islam-centric library. The ITL
|
||||
project currently includes full lunar-centric time measurement
|
||||
routines.
|
||||
The Islamic Tools and Libraries (ITL) project provides a fully
|
||||
featured library for performing common Islamic calculations.
|
||||
|
||||
ITL is currently composed of two library-modules:
|
||||
|
||||
* prayertime: Geographically-aware prayer time and Qibla calculation
|
||||
routines.
|
||||
* hijri: Hijri date generation/calculation and conversion routines.
|
||||
|
||||
WWW: https://github.com/arabeyes-org/ITL
|
||||
|
@ -1,6 +1,8 @@
|
||||
include/itl/astro.h
|
||||
include/itl/hijri.h
|
||||
include/itl/prayer.h
|
||||
lib/itl/libitl.a
|
||||
lib/itl/libitl.so
|
||||
lib/itl/libitl.so.0
|
||||
lib/itl/libitl.so.0.0.7
|
||||
lib/itl/libitl.so.0.1.8
|
||||
libdata/pkgconfig/libitl.pc
|
||||
|
Loading…
Reference in New Issue
Block a user