Alien-LibJQ

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN

# Developer Note and Instruction on Alien::LibJQ

## What This Module is

This module makes perl binding for jq and its static library. JQ is a light-weight command-line JSON processor, refer to its [project page](https://stedolan.github.io/jq/) for more information.

## How to Install

Install as usual:
   ```shell
   perl Makefile.PL
   make
   make test
   make install
   ```

jq/CMakeLists.txt  view on Meta::CPAN

# src/builtin.c calls setenv, which is not portable on windows
# below check will add a local implementation and compile
if(WIN32 AND MINGW)
  check_symbol_exists(setenv  "stdlib.h"  HAVE_SETENV)
  target_compile_definitions_if_true(HAVE_SETENV)
  if(NOT HAVE_SETENV)
    target_sources(jq PRIVATE
      src/setenv.h src/setenv.c
    )
    message(STATUS "patching src/builtin.c")
    execute_process(
      COMMAND patch -p0 -N --binary -i builtin.c.patch
      WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
    )
  endif()
endif()

add_executable(jq_bin src/main.c src/version.h)
set_target_properties(jq_bin PROPERTIES OUTPUT_NAME jq)
target_link_libraries(jq_bin PRIVATE jq)

jq/dist.info  view on Meta::CPAN

--- This file is part of LuaDist project

name = "jq"
version = "1.6"

desc = "jq is a lightweight and flexible command-line JSON processor."
author = "https://github.com/stedolan/jq/graphs/contributors"
license = "https://github.com/stedolan/jq/blob/master/COPYING"
url = "https://stedolan.github.io/jq/"
maintainer = "https://github.com/stedolan/jq/graphs/contributors"

jq/jq.pc.cmake.in  view on Meta::CPAN

prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
datarootdir=${prefix}/share
datadir=${prefix}/share

Name: jq
Description: lightweight and flexible command-line JSON processor
Version: @PACKAGE_VERSION@
Requires:
Libs: -L${libdir} -ljq -lonig -lm
Cflags: -I${includedir}



( run in 0.249 second using v1.01-cache-2.11-cpan-8d75d55dd25 )